Gas Fees
gas_feesLive EIP-1559 gas fees (slow/standard/fast tiers) plus USD cost per transaction type (transfer, ERC-20 transfer, swap, NFT mint) for Base, Ethereum, Arbitrum, Optimism and Polygon. Aggregated from public RPC nodes – no API key. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gas_fees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base | ethereum | arbitrum | optimism | polygon (default base). | base |
| wallet | No | Your EVM wallet address (0x...). Unlocks the free tier (3 free calls per wallet). | |
| api_key | No | Optional AMR enterprise API key. | |
| x_payment | No | Optional signed x402 payment payload (base64 JSON) for USDC/USDT on Base. | |
| max_age_seconds | No | Max cache age (default 10). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| tiers | Yes | ||
| token | No | Token actually used for payment (USDC, USDT or FREE). | USDC |
| trend | Yes | ||
| routing | Yes | How the request was routed (provider, fallback, cache, latency). | |
| chain_id | Yes | ||
| cost_usdc | Yes | Price charged in stablecoin units (USDC/USDT 1:1); 0 on the free tier. | |
| fetched_at | No | UTC timestamp when the data was fetched. | |
| block_number | Yes | ||
| native_token | Yes | ||
| base_fee_gwei | Yes | ||
| gas_price_gwei | Yes | ||
| native_price_usd | No | ||
| freshness_seconds | Yes | Age of the underlying data in seconds (0 = fetched live). | |
| gas_units_assumed | Yes | ||
| x_payment_response | No | Base64-encoded x402 settlement receipt (mirrors the X-PAYMENT-RESPONSE header). Only present when the call was paid with `x_payment`. |