Gas Price Check

Get current Ethereum gas fees: safe, standard and fast prices in Gwei plus the base fee, from the priority fees paid over the last 20 blocks.

Pay by wallet (x402) gas-price-check

Example

Example answer
{
  "chain_id": "1",
  "base_fee_gwei": 0.111812277,
  "fast_gas_gwei": 0.122993504,
  "safe_gas_gwei": 0.111812277,
  "gas_used_ratio": "0.79543645,0.18742179029228,0.0750681879814453,0.97324925,0.586948583333333",
  "proposed_gas_gwei": 0.112812277
}

Inputs

FieldTypeRequiredWhat it is
chain_idstringNoChain ID: 1 (Ethereum), 137 (Polygon PoS) or 56 (BNB Smart Chain). Rollups are refused. Default: 1

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
chain_idstringAlways (present in every successful answer)
base_fee_gweinumberUsually (present for most inputs)
fast_gas_gweinumberUsually (present for most inputs)
safe_gas_gweinumberUsually (present for most inputs)
blocks_samplednumberAlways (present in every successful answer)
gas_used_ratiostringUsually (present for most inputs)
proposed_gas_gweinumberUsually (present for most inputs)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "gas-price-check",
    "inputs": {},
    "max_price_cents": 2
  }'

Limitations

  • Output reflects the requested chain's fee history (eth_feeHistory via Alchemy) at query time. Dependent on upstream API availability; may degrade if the provider rate-limits or is temporarily unavailable.

  • Chains covered

    Ethereum (1), Polygon PoS (137) and BNB Smart Chain (56). Rollups such as Base, Arbitrum and OP Mainnet are refused: most of a transaction's cost there is the fee for posting its data to Ethereum, which fee history does not contain, so these tiers would understate it.

  • Fee tiers are computed, not quoted

    Safe, proposed and fast are the next block's base fee plus the median priority fee paid at the 10th, 50th and 90th percentile over the last 20 blocks. They are estimates of what recent transactions paid, not a guarantee of inclusion.