{"uid":"cap_JrHVDeDUGi3KbE6ndzTKo","slug":"gas-price-lookup-base-ethereum-f00c2fcf","name":"Gas Price Lookup (Base & Ethereum)","description":"41 pay-per-call JSON APIs for AI agents. No account or API key: an unpaid POST returns HTTP 402, pay in USDC on Base with x402 v2, retry. Prices from $0.001 per call.","url":"https://x402-micro-pay.com/api/skills/gas-price?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chains":{"type":"array","items":{"enum":["base","ethereum"],"type":"string"},"default":["base"],"maxItems":2,"minItems":1,"uniqueItems":true},"request_id":{"type":"string","pattern":"^[A-Za-z0-9._:-]+$","maxLength":64,"minLength":1,"description":"Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once."}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"as_of":"2026-10-24T14:00:00Z","results":[{"block":22000000,"chain":"base","chain_id":8453,"base_fee_gwei":0.012,"eth_transfer_usd":0.000001,"priority_fee_gwei":{"p25":0,"p50":0.001,"p90":0.01},"suggested_max_fee_gwei":0.025}]},"next":["erc20_meta","token_price"],"skill":"gas_price","charged":true,"service":"gas_price","sources":[{"url":"chain:8453","name":"base eth_feeHistory","fetched_at":"2026-10-24T14:00:00Z"}],"summary":"base base=0.012 tip~0.001 gwei","version":"1.0.0","warnings":[],"confidence":0.95,"data_as_of":"2026-10-24T14:00:00Z","generated_at":"2026-10-24T14:00:00Z"}},"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_18-Tk4rZ5B7jouAvC9UYi","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 fee, priority fee percentiles, suggested max fee) for Base and/or Ethereum chains, paid per-call via x402 USDC microtransaction.","exampleAgentPrompt":"What are the current gas prices on Base and Ethereum — give me the base fee, priority fee percentiles, and suggested max fee in gwei right now?","exampleUseCases":[{"title":"Decide optimal DeFi transaction timing","prompt":"Check the current gas prices on Base and tell me the base fee, p50 priority fee, and suggested max fee in gwei — I want to know if now is a cheap time to submit my transaction."},{"title":"Cross-chain gas cost comparison","prompt":"Pull the current gas fees for both Base and Ethereum and compare them — I need the base fee and suggested max fee in gwei for each chain."},{"title":"Estimate USD cost of ETH transfer","prompt":"What would it cost in USD to do a basic ETH transfer on Base right now? Give me the current gas data including the estimated ETH transfer cost."}],"resultDescription":"Returns a JSON object containing: block number, chain name and chain ID, base fee in gwei, ETH transfer cost in USD, priority fee percentiles (p25/p50/p90) in gwei, and suggested max fee in gwei. Also includes data freshness timestamp, confidence score, warnings, and suggested related skills.","failureModes":["HTTP 402 returned if payment not provided — agent must pay via x402 USDC on Base and retry","Invalid chain name returns validation error","Network timeout if the on-chain RPC is slow or unavailable","Stale data if blockchain node is lagging — confidence field may be lower"],"whenToPreferThis":"Choose this endpoint when an AI agent needs live gas fee data for Base or Ethereum without maintaining an API key or subscription. Ideal for autonomous agents that need to decide whether to submit on-chain transactions, estimate costs, or compare gas across chains. The x402 micropayment model makes it trivially cheap ($0.001 per call) and frictionless — no account setup required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:43:02.126Z","isFirstParty":false,"canonicalSlug":"gas-price-lookup-base-ethereum-f00c2fcf"}