Gas prices on Base, Ethereum, Arbitrum, Optimism, Polygon
gasGas prices on Base (default), Ethereum, Arbitrum, Optimism, Polygon or Solana, or chain=all for every chain at once: the base fee and slow, normal and fast priority fees, the latest block, and what a plain transfer and an ERC-20 transfer cost in native token and USD. EVM figures come from eth_feeHistory over the last 20 blocks; Solana from recent prioritization fees. Cached 15 seconds. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base (default), ethereum, arbitrum, optimism, polygon, solana or all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | ||
| chain | No | ||
| source | No | ||
| transfer | No | ||
| checkedAt | No | ||
| costBasis | No | ||
| disclaimer | No | ||
| baseFeeGwei | No | ||
| nativeSymbol | No | ||
| erc20Transfer | No | ||
| nativePriceUsd | No | ||
| priorityFeeGwei | No |