Estimate transaction fee

POST {{baseUrl}}/transactions/estimate_fee

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

Request Body

{"operation"=>"TRANSFER", "note"=>"<string>", "externalTxId"=>"<string>", "assetId"=>"<string>", "source"=>{"type"=>"EXCHANGE_ACCOUNT", "subType"=>"External", "id"=>"<string>", "name"=>"<string>", "walletId"=>"<uuid>"}, "destination"=>{"type"=>"CONTRACT", "subType"=>"External", "id"=>"<string>", "name"=>"<string>", "walletId"=>"<uuid>", "oneTimeAddress"=>{"address"=>"<string>", "tag"=>"<string>"}}, "destinations"=>[{"amount"=>"<string>", "destination"=>{"type"=>"EXTERNAL_WALLET", "subType"=>"BYBIT", "id"=>"<string>", "name"=>"<string>", "walletId"=>"<uuid>", "oneTimeAddress"=>{"address"=>"<string>", "tag"=>"<string>"}}}, {"amount"=>"<string>", "destination"=>{"type"=>"VAULT_ACCOUNT", "subType"=>"INDEPENDENTRESERVE", "id"=>"<string>", "name"=>"<string>", "walletId"=>"<uuid>", "oneTimeAddress"=>{"address"=>"<string>", "tag"=>"<string>"}}}], "amount"=>"<string>", "treatAsGrossAmount"=>"<boolean>", "forceSweep"=>"<boolean>", "feeLevel"=>"LOW", "fee"=>"<string>", "priorityFee"=>"<string>", "failOnLowFee"=>"<boolean>", "maxFee"=>"<string>", "maxTotalFee"=>"<string>", "gasLimit"=>"<string>", "gasPrice"=>"<string>", "networkFee"=>"<string>", "replaceTxByHash"=>"<string>", "customerRefId"=>"<string>", "travelRuleMessage"=>{"originator"=>{"fullName"=>"<string>", "dateOfBirth"=>"<string>", "placeOfBirth"=>"<string>", "address"=>"<string>", "identificationNumber"=>"<string>", "nationality"=>"<string>", "countryOfResidence"=>"<string>", "taxIdentificationNumber"=>"<string>", "customerNumber"=>"<string>"}, "beneficiary"=>{"fullName"=>"<string>", "dateOfBirth"=>"<string>", "placeOfBirth"=>"<string>", "address"=>"<string>", "identificationNumber"=>"<string>", "nationality"=>"<string>", "countryOfResidence"=>"<string>", "taxIdentificationNumber"=>"<string>", "customerNumber"=>"<string>"}, "originatorVASPdid"=>"<string>", "beneficiaryVASPdid"=>"<string>", "beneficiaryVASPname"=>"<string>", "transactionBlockchainInfo"=>{"txHash"=>"<string>", "origin"=>"<string>", "destination"=>"<string>"}, "encrypted"=>"<string>", "protocol"=>"<string>", "skipBeneficiaryDataValidation"=>"<boolean>", "travelRuleBehavior"=>"<boolean>", "originatorProof"=>{"type"=>"<string>", "proof"=>"<string>"}, "beneficiaryProof"=>{"type"=>"<string>", "proof"=>"<string>"}, "pii"=>{"fullName"=>"<string>", "dateOfBirth"=>"<string>", "placeOfBirth"=>"<string>", "address"=>"<string>", "identificationNumber"=>"<string>", "nationality"=>"<string>", "countryOfResidence"=>"<string>", "taxIdentificationNumber"=>"<string>", "customerNumber"=>"<string>"}}, "autoStaking"=>"<boolean>", "networkStaking"=>"<string>", "cpuStaking"=>"<string>", "useGasless"=>"<boolean>"}

HEADERS

KeyDatatypeRequiredDescription
Idempotency-KeystringA 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-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;low&quot;:{&quot;feePerByte&quot;:&quot;\u003cstring\u003e&quot;,&quot;gasPrice&quot;:&quot;\u003cnumber\u003e&quot;,&quot;gasLimit&quot;:&quot;\u003cstring\u003e&quot;,&quot;networkFee&quot;:&quot;\u003cstring\u003e&quot;,&quot;baseFee&quot;:&quot;\u003cnumber\u003e&quot;,&quot;priorityFee&quot;:&quot;\u003cnumber\u003e&quot;,&quot;maxFeePerGasDelta&quot;:&quot;\u003cstring\u003e&quot;,&quot;l1Fee&quot;:&quot;\u003cstring\u003e&quot;},&quot;medium&quot;:{&quot;feePerByte&quot;:&quot;\u003cstring\u003e&quot;,&quot;gasPrice&quot;:&quot;\u003cnumber\u003e&quot;,&quot;gasLimit&quot;:&quot;\u003cstring\u003e&quot;,&quot;networkFee&quot;:&quot;\u003cstring\u003e&quot;,&quot;baseFee&quot;:&quot;\u003cnumber\u003e&quot;,&quot;priorityFee&quot;:&quot;\u003cnumber\u003e&quot;,&quot;maxFeePerGasDelta&quot;:&quot;\u003cstring\u003e&quot;,&quot;l1Fee&quot;:&quot;\u003cstring\u003e&quot;},&quot;high&quot;:{&quot;feePerByte&quot;:&quot;\u003cstring\u003e&quot;,&quot;gasPrice&quot;:&quot;\u003cnumber\u003e&quot;,&quot;gasLimit&quot;:&quot;\u003cstring\u003e&quot;,&quot;networkFee&quot;:&quot;\u003cstring\u003e&quot;,&quot;baseFee&quot;:&quot;\u003cnumber\u003e&quot;,&quot;priorityFee&quot;:&quot;\u003cnumber\u003e&quot;,&quot;maxFeePerGasDelta&quot;:&quot;\u003cstring\u003e&quot;,&quot;l1Fee&quot;:&quot;\u003cstring\u003e&quot;}}