compare_gas_costs
Where is it cheapest to send this transaction right now?. Ranks all 6 supported chains (Base, Ethereum, Arbitrum, Optimism, Polygon, Solana) by USD cost for a transaction type (transfer, USDC transfer or swap) at a speed tier (slow/standard/fast). Returns the ranking, the cheapest chain, and any chains queried in parallel that didn't respond (in failed[]). Costs $0.005 USDC per call (x402).
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": "compare_gas_costs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | No | Transaction type | transfer |
| tier | No | Speed tier | standard |