This API is a request to fetch the estimated gas fees and rates for hot wallet transactions in UTXO and EVM blockchains.
The API returns the following parameters depending on the blockchain protocol used:
- When using a UTXO chain, it returns the
fee,feeRate,ERC20TokenFees,maxFeePerGasGwei, andmaxPriorityFeePerGasGweiparameters. - When using an EVM chain, it returns the
coin,blockNumber,timestamp,baseFeePerGas,typeparameters and theslow,marketandaggressiveobjects, each including thepriorityFeeMultiplier,maxPriorityFeePerGasandmaxFeePerGasparameters.
EVM blockchains return gas fee rates as per slow, market and aggressive estimates, where the priorityFeeMultiplier values are 1, 1.5 and 2 respectively.
How the gas fee estimation is calculated based on the tier type:
1. Chain type is EIP-1559:
-
The
maxPriorityFeePerGas= the base network tip fee xpriorityFeeMultiplier. -
The
maxFeePerGas= (baseFeePerGasx 2) +maxPriorityFeePerGas.
2. Chain type is BNB:
The maxPriorityFeePerGas = base network fee x priorityFeeMultiplier.
The maxFeePerGas = maxPriorityFeePerGas.
NoteThe
baseFeePerGasx 2 accounts for the doubling of the network base fee in the next block. A BNB chain does not include a network base fee.
The estimation types are used when passing the feelevel parameter in the Create transaction requests API. If you are using a custom value for the feeLevel parameter:
- Refer to the
maxPriorityFeePerGasandmaxFeePerGasfields when the blockchain protocoltypeis EIP 1559 (ETH), and - Refer to the
maxFeePerGasfield when the blockchain protocoltypeis BNB (legacy).
