Estimate current transaction fee for different operations.
Supported blockchains:
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to perform the required operation due to a logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "chain": "CELO",
- "type": "DEPLOY_ERC20",
- "sender": "0xfb99f8ae9b70a0c8cd96ae665bbaf85a7e01a2ef",
- "recipient": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "contractAddress": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "amount": "100000"
}
{- "fast": "0.006584",
- "medium": "0.004584",
- "slow": "0.002584"
}
Estimate gasLimit and gasPrice of the Ethereum transaction. Gas price is obtained from multiple sources + calculated based on the latest N blocks and the current mempool state. The fast one is used by default.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "from": "0xfb99f8ae9b70a0c8cd96ae665bbaf85a7e01a2ef",
- "to": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "contractAddress": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "amount": "100000",
- "data": "My note to recipient."
}
{- "gasLimit": "40000",
- "gasPrice": "20000000000",
- "estimations": {
- "safe": "20000000000",
- "standard": "40000000000",
- "fast": "55000000000",
- "baseFee": "55000000000"
}
}
Estimate gasLimit and gasPrice of the Ethereum transaction. Gas price is obtained from multiple sources + calculated based on the latest N blocks and the current mempool state.
The fast one is used by default.
Result is calculated in the order of the request array items.
Array of objects (EthEstimateGas) | |||||||||||
Array
|
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "estimations": [
- {
- "from": "0xfb99f8ae9b70a0c8cd96ae665bbaf85a7e01a2ef",
- "to": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "contractAddress": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "amount": "100000",
- "data": "My note to recipient."
}
]
}
{- "error": true,
- "result": [
- {
- "error": true,
- "msg": "Provided address 0xt16360210b423d3a5205923d6e64a2d142d9f426 is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted."
}, - {
- "error": false,
- "contractAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
- "data": {
- "gasLimit": "63185",
- "gasPrice": "119104833751",
- "estimations": {
- "safe": "100833333333",
- "standard": "104833333333",
- "fast": "119104833751",
- "baseFee": "119104833751"
}
}
}
]
}
Estimate gasLimit and gasPrice of the Polygon transaction. Gas price is obtained from https://gasstation-mainnet.matic.network/.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "from": "0xfb99f8ae9b70a0c8cd96ae665bbaf85a7e01a2ef",
- "to": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "amount": "100000",
- "data": "My note to recipient."
}
{- "gasLimit": "40000",
- "gasPrice": "20"
}
Estimate gasLimit and gasPrice of the BSC transaction. Gas price is obtained from https://explorer.bitquery.io/bsc/gas.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "from": "0xfb99f8ae9b70a0c8cd96ae665bbaf85a7e01a2ef",
- "to": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "amount": "100000",
- "data": "My note to recipient."
}
{- "gasLimit": "40000",
- "gasPrice": "20"
}
Estimate gasLimit and gasPrice of the Klaytn transaction. Gas price is obtained from https://gasstation-mainnet.matic.network/.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "from": "0xfb99f8ae9b70a0c8cd96ae665bbaf85a7e01a2ef",
- "to": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "amount": "100000",
- "data": "My note to recipient."
}
{- "gasLimit": "40000",
- "gasPrice": "20"
}
Estimate gasLimit and gasPrice of the XDC transaction. Gas price is obtained from https://rpc.xinfin.network/gasPrice.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "from": "xdcfb99f8ae9b70a0c8cd96ae665bbaf85a7e01a2ef",
- "to": "xdc687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "amount": "100000",
- "data": "My note to recipient."
}
{- "gasLimit": "40000",
- "gasPrice": "5"
}
Estimate gasLimit and gasPrice of the Kcs transaction.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "from": "0xfb99f8ae9b70a0c8cd96ae665bbaf85a7e01a2ef",
- "to": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "amount": "100000",
- "data": "My note to recipient."
}
{- "gasLimit": "40000",
- "gasPrice": "20"
}
Estimate gas required for transaction.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "from": "0x5034aa590125b64023a0262112b98d72e3c8e40e",
- "to": "0x5034aa590125b64023a0262112b98d72e3c8e40e",
- "value": "140",
- "data": "string",
- "nonce": 12345
}
21000
Get estimated gas fees
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
curl -i -X GET \ 'https://api-eu1.tatum.io/v3/qtum/transactions/gas/{nblocks}' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{ }
Get estimated gas fees per byte
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
curl -i -X GET \ 'https://api-eu1.tatum.io/v3/qtum/transactions/gasbytes/{nblocks}' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{ }