Quote native gas
agentgas_quoteFree price quote: how much USDC (on Base, paid via gasless x402) buys a given amount of native gas (ETH on base/arbitrum/optimism, POL on polygon). Returns price_usdc, breakdown and the exact x402 URL to pay. Rejects bad input or over-capacity before any payment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>"
},
"name": "agentgas_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient 0x address (optional for a quote) | |
| usd | No | Alternatively, a USD budget for the gas value, e.g. 0.25 | |
| chain | Yes | Destination chain for the native gas | |
| payer | No | Your paying wallet, to quote your loyalty fee | |
| amount | No | Native amount, e.g. 0.000025 (ETH default) or 0.5 (POL). Use amount or usd. |