Multi-chain gas and action cost oracle with AI pick
get_evm_gas_priceFetch current EVM gas prices, EIP-1559 base and priority fees, and USD ERC-20 transfer estimates across Base, Ethereum, Arbitrum, and Optimism to estimate transaction costs.
Instructions
Fetch current EVM gas prices, EIP-1559 base/priority fees, and USD transfer estimates across Base, Ethereum, Arbitrum, and Optimism. Pass optional chain (base, ethereum, arbitrum, optimism, or all; defaults to base). Returns gas_gwei, base_fee_gwei, priority_fee_gwei, and est_erc20_transfer_usd. Do not use for Solana priority fees (use get_solana_priority_fee) or raw RPC calls (use call_chain_rpc). 1 free try per IP, then HTTP 402 ($0.001 USDC).
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": "get_evm_gas_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | What you plan to do (e.g. 'swap USDC to ETH') | swap |
| chains | No | Comma list (default: base,ethereum,arbitrum,optimism) | |
| timeout_ms | No | Optional deadline in ms. If the local LLM would exceed it, the response comes back fast with "degraded": true and non-LLM/cached data | |
| session_token | No | Optional prepaid x402s_... session token from open_agent_session or https://apix402data.com/pay used after the 1 free try rolls over to HTTP 402. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ai | No | ||
| as_of | No | ||
| action | No | ||
| cached | No | ||
| chains | No | ||
| errors | No | ||
| eth_usd | No | ||
| cheapest | No | ||
| degraded | No | ||
| endpoint | No | ||
| schema_version | No |