Learn more about Fee Management in Fireblocks in the following guide
- Estimate a tentative fee for low, medium, or high rates by making a request to Estimate the required fee for an asset.
- Estimate a specific fee based on your transaction’s parameters by making a request to Estimate the transaction fee.
Fee levels determine transaction speedThe fee rate dictates the speed at which your transaction will be picked up and confirmed by the blockchain. When setting a tentative fee rate, the fee amount is an estimate only. Gas fee calculation is not finalized until your transaction is signed.
Using custom feeUsing the custom fee option can be complex as it offers different parameters, similar to stock trading, that allow you to set options like:
- Maximum priority fee - Transaction time takes priority over gas fee price.
- Max fee - The gas fee max price is preset and takes priority over transaction time.
Estimated network fee
Response Caching:The network fee response is cached for 30 seconds on the Fireblocks side. Customers should consider this interval when using this endpoint, as querying it more frequently than every 30 seconds will not provide additional value.
getFeeForAsset SDK function for the ETH asset. A high priorityFee estimation is used here to create a transaction sending 0.001 from vault ID 0 to vault ID 1.
The fee level can be either LOW / MEDIUM / HIGH. It will be MEDIUM by default.
- Note: You are required to specify the
maxFeewhen usingpriorityFee.
Estimate transaction fee
You’ll see thefeeLevel parameter value inside your transaction data based on the fee level selection from the estimateFeeForTransaction SDK function.
This example shows how the estimated network fee is returned by the getFeeForAsset SDK function for the ETH asset. A high priorityFee estimation is used here to create a transaction sending 0.001 from vault ID 0 to vault ID 1: