Skip to main content
POST
/
api
/
transactions
/
get-gas-price
curl -X POST 'https://crypto-api.yativo.com/api/transactions/get-gas-price' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "chain_type": "ethereum",
    "priority": "fast",
    "amount_usd": 500
  }'
{
  "status": "success",
  "message": "Gas price retrieved successfully",
  "data": {
    "chain": "ethereum",
    "priority": "fast",
    "gas_price_gwei": "45.2",
    "estimated_gas_units": 65000,
    "estimated_fee_eth": "0.002938",
    "estimated_fee_usd": "10.58",
    "estimated_confirmation_seconds": 15
  }
}
Authorization
string
required
Bearer token: Bearer YOUR_ACCESS_TOKEN
chain_type
string
required
The blockchain network to estimate gas for. One of: ethereum, solana, bitcoin, polygon, bsc, base, arbitrum, optimism, xdc.
priority
string
Transaction priority affecting confirmation speed and fee. One of: slow, medium, fast. Defaults to medium.
amount_usd
number
Optional transaction amount in USD, used to calculate gas as a percentage of the transfer.
asset_id
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/transactions/get-gas-price' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "chain_type": "ethereum",
    "priority": "fast",
    "amount_usd": 500
  }'
{
  "status": "success",
  "message": "Gas price retrieved successfully",
  "data": {
    "chain": "ethereum",
    "priority": "fast",
    "gas_price_gwei": "45.2",
    "estimated_gas_units": 65000,
    "estimated_fee_eth": "0.002938",
    "estimated_fee_usd": "10.58",
    "estimated_confirmation_seconds": 15
  }
}