{"uid":"cap_k88JjiaakGlS0ZRSgDYLE","slug":"plainchain-gas-price-oracle-bd71bb87","name":"Plainchain Gas Price Oracle","description":"Gas, balances, token data, address type, approvals, transaction decoding, x402 receipt verification and verifiable randomness on Base, Arbitrum, Ethereum and Optimism. No API key: pay $0.001-$0.01 per call in USDC on Base via x402.","url":"https://plainchain.appin60.com/v1/gas?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":{"type":"string","description":"base (default), arbitrum, ethereum or optimism; chain ids 8453, 42161, 1, 10 also work"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"block":36581662,"chain":"Base","ethUsd":2527.2,"chainId":8453,"estimates":{"dexSwap":{"eth":0.00000108,"gas":180000,"usd":0.00273},"ethTransfer":{"eth":1.26e-7,"gas":21000,"usd":0.000318},"erc20Transfer":{"eth":3.9e-7,"gas":65000,"usd":0.000986}},"baseFeeGwei":0.005,"gasPriceGwei":0.006,"priorityFeeGwei":0.001}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001042","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.001042/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001042","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001042","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vA3-t7SkSYLgc-zqx9XlO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001042","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current gas price, base fee, priority fee, and cost estimates for common transaction types on Base, Arbitrum, Ethereum, or Optimism","exampleAgentPrompt":"What are the current gas fees on Base — give me the base fee, priority fee, and how much a DEX swap and a simple ETH transfer would cost right now in both ETH and USD.","exampleUseCases":[{"title":"Pre-swap gas cost check","prompt":"Before I do a token swap on Base, can you tell me what the current gas price is and roughly how much a DEX swap will cost me in USD?"},{"title":"Cross-chain fee comparison","prompt":"Check the current gas prices on both Arbitrum and Optimism so I can decide which chain is cheaper to use for my transaction right now."},{"title":"ETH transfer cost estimate","prompt":"How much would a simple ETH transfer cost on Ethereum mainnet right now in USD? Give me the current gas price and the estimate."}],"resultDescription":"Returns a JSON object with: current block number, chain name and ID, ETH/USD price, base fee in Gwei, gas price in Gwei, priority fee in Gwei, and USD/ETH cost estimates for three common transaction types — ETH transfer (21k gas), ERC-20 transfer (65k gas), and DEX swap (180k gas).","failureModes":["Unsupported chain name or chain ID returns an error","Network congestion or RPC issues may cause stale or delayed data","Missing chain parameter defaults to Base — may surprise callers expecting a different chain","x402 payment failure if USDC balance is insufficient on Base"],"whenToPreferThis":"Use this endpoint when an AI agent needs real-time gas fee data across Base, Arbitrum, Ethereum, or Optimism without setting up API keys — ideal for cost estimation before submitting transactions, comparing fees across chains, or deciding when to execute a transaction. Pay-per-call x402 pricing ($0.001) makes it cost-effective for low-frequency lookups.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:37:36.363Z","isFirstParty":false,"canonicalSlug":"plainchain-gas-price-oracle-bd71bb87"}