get_gas_prices
Retrieve current gas prices for Ethereum, Base, Polygon, and Arbitrum. Returns slow, standard, and fast tiers in gwei with estimated USD cost.
Instructions
Get current gas prices across multiple chains: Ethereum, Base, Polygon, and Arbitrum. Returns slow/standard/fast tiers in gwei and estimated USD cost. Costs 0.001 USDC per call (x402 micropayment on Base).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:259-270 (registration)Tool registration in the TOOLS array: defines the tool name 'get_gas_prices', its description, and input schema (no parameters required).
{ name: 'get_gas_prices', description: 'Get current gas prices across multiple chains: Ethereum, Base, Polygon, and Arbitrum. ' + 'Returns slow/standard/fast tiers in gwei and estimated USD cost. ' + 'Costs 0.001 USDC per call (x402 micropayment on Base).', inputSchema: { type: 'object', properties: {}, required: [], }, }, - src/index.ts:265-269 (schema)Input schema for get_gas_prices: an empty object with no required parameters.
inputSchema: { type: 'object', properties: {}, required: [], }, - src/index.ts:450-452 (handler)Handler for get_gas_prices: calls the API endpoint '/api/gas-tracker' with no parameters via the callApi helper, then formats the result.
case 'get_gas_prices': result = await callApi('/api/gas-tracker'); break;