v1

latestOpenAPI 3.1.02026-07-243035381.4 MB
Fee Estimation API

Estimate gas for a transfer

10 credits per API call

Get an estimated gas price (wei) and the number of gas units needed for a transaction.

New endpoint which is unifying all supported chains for gas estimation into the one. List of supported chains is bellow.

  • BNB Smart Chain (BSC)
  • Celo (CELO)
  • Elrond (EGLD)
  • Ethereum (ETH)
  • Harmony (ONE)
  • Klaytn (KLAY)
  • KuCoin Community Chain (KCS)
  • Flare (FLR)
  • Cronos (CRO)
  • Avalanche (AVAX)
  • Base (BASE)
  • Polygon (POL_ETH)
  • Optimism (OPTIMISM)
  • Fantom (FTM)
  • Sonic (S)
post/v4/blockchainOperations/gas

Request body

fromstring required

Blockchain address of the sender

tostring required

Blockchain address of the recipient

amountstring required

Amount to be sent

datastring

Data to be sent

contractAddressstring

Contract address of the token (only for ETH)

chain'BSC' | 'CELO' | 'EGLD' | 'ETH' | 'ONE' | 'KLAY' | 'KCS' | 'FLR' | 'CRO' | 'AVAX' | 'BASE' | 'POL_ETH' | 'OPTIMISM' | 'FTM' | 'S' required

Blockchain to estimate gas for

Example request

{
  "from": "0xfb99f8ae9b70a0c8cd96ae665bbaf85a7e01a2ef",
  "to": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
  "amount": "100000",
  "data": "0x",
  "contractAddress": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85"
}

Response

OK

gasPricestring

The estimated price for one gas unit (in wei)

gasLimitstring

The number of the gas units needed to process the transaction at the estimated gas price

Example response

{
  "gasPrice": "10000000000",
  "gasLimit": "21000"
}