curl -X POST 'https://crypto-api.yativo.com/api/v1/transactions/get-gas-price' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"chainType": "ETH",
"priority": "low"
}'
{
"success": true,
"data": {
"estimatedFee": 0.00063,
"gasFee": 0.00063,
"platformFees": 0,
"priority": "low",
"chainType": "ETH",
"breakdown": {
"gas_cost_usd": "0.00063000",
"platform_fees_usd": "0.00000000",
"total_cost_usd": "0.00063000",
"platform_fee_details": []
}
}
}
Transactions
Get Gas Fee
Estimate the gas fee for a transaction on a given blockchain network
POST
/
v1
/
transactions
/
get-gas-price
curl -X POST 'https://crypto-api.yativo.com/api/v1/transactions/get-gas-price' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"chainType": "ETH",
"priority": "low"
}'
{
"success": true,
"data": {
"estimatedFee": 0.00063,
"gasFee": 0.00063,
"platformFees": 0,
"priority": "low",
"chainType": "ETH",
"breakdown": {
"gas_cost_usd": "0.00063000",
"platform_fees_usd": "0.00000000",
"total_cost_usd": "0.00063000",
"platform_fee_details": []
}
}
}
string
required
Bearer token:
Bearer YOUR_ACCESS_TOKENstring
required
The blockchain network to estimate gas for. One of:
ethereum, solana, bitcoin, polygon, bsc, base, arbitrum, optimism, xdc.string
Transaction priority affecting confirmation speed and fee. One of:
slow, medium, fast. Defaults to medium.number
Optional transaction amount in USD, used to calculate gas as a percentage of the transfer.
string
Optional asset ID to get a fee estimate specific to that asset’s token type.
curl -X POST 'https://crypto-api.yativo.com/api/v1/transactions/get-gas-price' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"chainType": "ETH",
"priority": "low"
}'
{
"success": true,
"data": {
"estimatedFee": 0.00063,
"gasFee": 0.00063,
"platformFees": 0,
"priority": "low",
"chainType": "ETH",
"breakdown": {
"gas_cost_usd": "0.00063000",
"platform_fees_usd": "0.00000000",
"total_cost_usd": "0.00063000",
"platform_fee_details": []
}
}
}

