Estimates the gas fees for a given raw transaction.
curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/chains/{chainName}/transactions/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base64RawTransaction": "<string>",
"fromAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"rawTransactionData": "<string>"
}
'{
"estimatedFee": "<string>",
"currency": "<string>",
"decimals": 123,
"units": "<string>",
"unitPrice": "<string>",
"baseFee": "<string>",
"priorityFee": "<string>",
"maxFee": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the environment
36^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"95b11417-f18f-457f-8804-68e361f9164f"
ETH, EVM, FLOW, SOL, ALGO, STARK, COSMOS, BTC, ECLIPSE, SUI, SPARK, TRON, APTOS, TON, STELLAR, ALEO, TEMPO, MIDNIGHT Raw transaction to estimate
Deprecated — use rawTransactionData instead. The base64-encoded raw transaction to estimate gas fees for.
^[A-Za-z0-9+/]*={0,2}$Valid blockchain wallet address, must be an alphanumeric string without any special characters
255^[A-Za-z0-9]{18,100}$"0xbF394748301603f18d953C90F0b087CBEC0E1834"
The raw transaction data to estimate gas fees for. For BTC, the PSBT string. For EVM, the transaction data in JSON format with properties: { to, data, value }. For Solana, the base64-encoded transaction data. For Sui, the base64-encoded transaction data.
Transaction fee estimate returned successfully
Total estimated fee in the smallest unit of the native currency
Native currency symbol (ETH, SOL, BTC, SUI, etc.)
Number of decimals for the native currency
Estimated units of compute/space required (gas, compute units, vBytes, etc.)
Price per unit in the smallest denomination
Base fee component
Priority/tip fee component
Maximum possible fee (for chains with variable pricing)
Was this page helpful?
curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/chains/{chainName}/transactions/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base64RawTransaction": "<string>",
"fromAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"rawTransactionData": "<string>"
}
'{
"estimatedFee": "<string>",
"currency": "<string>",
"decimals": 123,
"units": "<string>",
"unitPrice": "<string>",
"baseFee": "<string>",
"priorityFee": "<string>",
"maxFee": "<string>"
}