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
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":"\u003cstring\u003e","gasPrice":"\u003cnumber\u003e","gasLimit":"\u003cstring\u003e","networkFee":"\u003cstring\u003e","baseFee":"\u003cnumber\u003e","priorityFee":"\u003cnumber\u003e","maxFeePerGasDelta":"\u003cstring\u003e","l1Fee":"\u003cstring\u003e"},"medium":{"feePerByte":"\u003cstring\u003e","gasPrice":"\u003cnumber\u003e","gasLimit":"\u003cstring\u003e","networkFee":"\u003cstring\u003e","baseFee":"\u003cnumber\u003e","priorityFee":"\u003cnumber\u003e","maxFeePerGasDelta":"\u003cstring\u003e","l1Fee":"\u003cstring\u003e"},"high":{"feePerByte":"\u003cstring\u003e","gasPrice":"\u003cnumber\u003e","gasLimit":"\u003cstring\u003e","networkFee":"\u003cstring\u003e","baseFee":"\u003cnumber\u003e","priorityFee":"\u003cnumber\u003e","maxFeePerGasDelta":"\u003cstring\u003e","l1Fee":"\u003cstring\u003e"}}