Logo
Fireblocks API Documentation

Estimate transaction fee

POST {{baseUrl}}/transactions/estimate_fee

Estimates the transaction fee for a transaction request. * Note: Supports all Fireblocks assets except ZCash (ZEC).

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Idempotency-Key
string A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Content-Type
string
Accept
string




RESPONSES

status OK

{ "low": { "feePerByte": "<string>", "gasPrice": "<number>", "gasLimit": "<string>", "networkFee": "<string>", "baseFee": "<number>", "priorityFee": "<number>", "maxFeePerGasDelta": "<string>", "l1Fee": "<string>" }, "medium": { "feePerByte": "<string>", "gasPrice": "<number>", "gasLimit": "<string>", "networkFee": "<string>", "baseFee": "<number>", "priorityFee": "<number>", "maxFeePerGasDelta": "<string>", "l1Fee": "<string>" }, "high": { "feePerByte": "<string>", "gasPrice": "<number>", "gasLimit": "<string>", "networkFee": "<string>", "baseFee": "<number>", "priorityFee": "<number>", "maxFeePerGasDelta": "<string>", "l1Fee": "<string>" } }

Curl
curl -X POST 'https://api.fireblocks.io/v1/transactions/estimate_fee' -H 'Idempotency-Key: <string>' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"operation":"TRANSFER","note":"\u003cstring\u003e","externalTxId":"\u003cstring\u003e","assetId":"\u003cstring\u003e","source":{"type":"EXCHANGE_ACCOUNT","subType":"External","id":"\u003cstring\u003e","name":"\u003cstring\u003e","walletId":"\u003cuuid\u003e"},"destination":{"type":"CONTRACT","subType":"External","id":"\u003cstring\u003e","name":"\u003cstring\u003e","walletId":"\u003cuuid\u003e","oneTimeAddress":{"address":"\u003cstring\u003e","tag":"\u003cstring\u003e"}},"destinations":[{"amount":"\u003cstring\u003e","destination":{"type":"EXTERNAL_WALLET","subType":"BYBIT","id":"\u003cstring\u003e","name":"\u003cstring\u003e","walletId":"\u003cuuid\u003e","oneTimeAddress":{"address":"\u003cstring\u003e","tag":"\u003cstring\u003e"}}},{"amount":"\u003cstring\u003e","destination":{"type":"VAULT_ACCOUNT","subType":"INDEPENDENTRESERVE","id":"\u003cstring\u003e","name":"\u003cstring\u003e","walletId":"\u003cuuid\u003e","oneTimeAddress":{"address":"\u003cstring\u003e","tag":"\u003cstring\u003e"}}}],"amount":"\u003cstring\u003e","treatAsGrossAmount":"\u003cboolean\u003e","forceSweep":"\u003cboolean\u003e","feeLevel":"LOW","fee":"\u003cstring\u003e","priorityFee":"\u003cstring\u003e","failOnLowFee":"\u003cboolean\u003e","maxFee":"\u003cstring\u003e","maxTotalFee":"\u003cstring\u003e","gasLimit":"\u003cstring\u003e","gasPrice":"\u003cstring\u003e","networkFee":"\u003cstring\u003e","replaceTxByHash":"\u003cstring\u003e","customerRefId":"\u003cstring\u003e","travelRuleMessage":{"originator":{"fullName":"\u003cstring\u003e","dateOfBirth":"\u003cstring\u003e","placeOfBirth":"\u003cstring\u003e","address":"\u003cstring\u003e","identificationNumber":"\u003cstring\u003e","nationality":"\u003cstring\u003e","countryOfResidence":"\u003cstring\u003e","taxIdentificationNumber":"\u003cstring\u003e","customerNumber":"\u003cstring\u003e"},"beneficiary":{"fullName":"\u003cstring\u003e","dateOfBirth":"\u003cstring\u003e","placeOfBirth":"\u003cstring\u003e","address":"\u003cstring\u003e","identificationNumber":"\u003cstring\u003e","nationality":"\u003cstring\u003e","countryOfResidence":"\u003cstring\u003e","taxIdentificationNumber":"\u003cstring\u003e","customerNumber":"\u003cstring\u003e"},"originatorVASPdid":"\u003cstring\u003e","beneficiaryVASPdid":"\u003cstring\u003e","beneficiaryVASPname":"\u003cstring\u003e","transactionBlockchainInfo":{"txHash":"\u003cstring\u003e","origin":"\u003cstring\u003e","destination":"\u003cstring\u003e"},"encrypted":"\u003cstring\u003e","protocol":"\u003cstring\u003e","skipBeneficiaryDataValidation":"\u003cboolean\u003e","travelRuleBehavior":"\u003cboolean\u003e","originatorProof":{"type":"\u003cstring\u003e","proof":"\u003cstring\u003e"},"beneficiaryProof":{"type":"\u003cstring\u003e","proof":"\u003cstring\u003e"},"pii":{"fullName":"\u003cstring\u003e","dateOfBirth":"\u003cstring\u003e","placeOfBirth":"\u003cstring\u003e","address":"\u003cstring\u003e","identificationNumber":"\u003cstring\u003e","nationality":"\u003cstring\u003e","countryOfResidence":"\u003cstring\u003e","taxIdentificationNumber":"\u003cstring\u003e","customerNumber":"\u003cstring\u003e"}},"autoStaking":"\u003cboolean\u003e","networkStaking":"\u003cstring\u003e","cpuStaking":"\u003cstring\u003e","useGasless":"\u003cboolean\u003e"}'

ENDPOINTS