get_gas_price
Live gas on Base/Ethereum/Polygon/Avalanche/Arbitrum/OP plus USD transfer cost. GET /x402/gas-check?chain= — $0.01.
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_gas_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Optional chain: base|ethereum|polygon|avalanche|arbitrum|optimism | |
| payment | No | Optional. Your x402 payment proof for this exact call — the PAYMENT-SIGNATURE value produced by settling this route's 402 challenge (USDC on Base, Polygon or Solana), or an MPP 'Authorization: Payment ...' value. Omit on a first call: the tool then returns the live 402 challenge to pay against. This server relays your proof upstream and retries; it never creates or settles payments itself. |