{"uid":"cap_rlHiFmEUU7iSDj74DrzdA","slug":"gas-now-multi-chain-gas-price-api-62577461","name":"Gas Now — Multi-Chain Gas Price API","description":"Generate an AI_POLICY.md and a pull request template with an AI-disclosure section for your open-source repo. Free, runs in your browser.","url":"https://ai-policy-kit.moneymaker-ai.workers.dev/api/gas-now?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"chain":{"enum":["base","ethereum","bsc","arbitrum","optimism","polygon","gnosis","celo"],"type":"string","description":"optional; omit for all 8 chains"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"chains":[{"block":52783442,"chain":"base","native":"ETH","chainId":8453,"base_fee_gwei":0.005,"block_time_utc":"2026-10-18T20:43:51.000Z","gas_price_gwei":0.006,"priority_fee_gwei":0.001,"block_gas_used_pct":4.5,"cost_native_transfer":"0.000000126","cost_erc20_transfer_65k":"0.00000039"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ApV_2GA0reQHIP9U9ToOB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current gas prices, base fees, priority fees, block info, and transfer cost estimates for up to 8 EVM-compatible blockchains in a single call.","exampleAgentPrompt":"What are the current gas prices on Base and Ethereum right now — including the base fee, priority fee, and what a simple ETH transfer would cost?","exampleUseCases":[{"title":"Pre-transaction gas check on Arbitrum","prompt":"Before I send this token swap, can you check the current gas price on Arbitrum and tell me how much an ERC-20 transfer will cost me in ETH?"},{"title":"Cheapest chain selection for bulk airdrop","prompt":"I need to do a big ERC-20 token airdrop and want to pick the cheapest chain — can you pull current gas prices across all 8 supported chains so I can compare costs?"},{"title":"Real-time gas monitoring for DeFi bot","prompt":"What is the current base fee and block gas usage percentage on Ethereum right now? I want to know if it's a good time to execute my arbitrage transaction."}],"resultDescription":"Returns a JSON array of chain objects, each containing the current block number, block timestamp (UTC), chain name and ID, native asset ticker, base fee in gwei, gas price in gwei, priority fee in gwei, block gas used as a percentage, estimated cost of a native ETH transfer, and estimated cost of a 65k-gas ERC-20 transfer — all denominated in the chain's native currency.","failureModes":["Invalid chain enum value returns a validation error","Network timeout if the target blockchain RPC is unresponsive","Stale data if block production is delayed on the queried chain","Payment failure (402) if x402 USDC micropayment is not submitted correctly"],"whenToPreferThis":"Choose this endpoint when you need real-time, multi-chain gas price data across up to 8 EVM networks in a single low-cost call. It is particularly useful for agents that need to select the cheapest chain before executing a transaction, estimate user-facing gas costs, or gate actions on gas conditions. Prefer this over chain-specific RPC calls when breadth across networks matters more than ultra-low latency to a single chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:41:58.574Z","isFirstParty":false,"canonicalSlug":"gas-now-multi-chain-gas-price-api-62577461"}