{"uid":"cap_na7kbEGYxmsEjxHh9nAVe","slug":"2s-io-a6a8de01","name":"2s.io EVM Gas Oracle","description":"Live EVM gas oracle. Returns latest block baseFeePerGas + slow/standard/fast tiers derived from priority-fee percentiles (p25/p50/p75) over the trailing 4 blocks, plus a 21,000-gas transfer cost estimate in the chain native unit. Chains: base, ethereum, polygon, arbitrum, optimism. Real-time post-training data, ~5s freshness.","url":"https://2s.io/api/crypto/gas-oracle","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["chain"],"properties":{"chain":{"enum":["base","ethereum","polygon","arbitrum","optimism"],"type":"string","description":"EVM chain to query: base | ethereum | polygon | arbitrum | optimism."}},"additionalProperties":false}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"chain":"base"}}},"response":{"data":{"ok":true,"items":[{"block":{"number":47485487,"timestamp":1781760321000,"baseFeePerGasWei":"5000000","baseFeePerGasGwei":0.005},"chain":{"key":"base","name":"Base","chainId":8453,"nativeSymbol":"ETH"},"tiers":{"fast":{"maxFeePerGasWei":"9750000","maxFeePerGasGwei":0.0098,"transferNativeCost":2.1e-7,"priorityFeePerGasWei":"4750000","priorityFeePerGasGwei":0.0048},"slow":{"maxFeePerGasWei":"6000000","maxFeePerGasGwei":0.006,"transferNativeCost":1.3e-7,"priorityFeePerGasWei":"1000000","priorityFeePerGasGwei":0.001},"standard":{"maxFeePerGasWei":"6152500","maxFeePerGasGwei":0.0062,"transferNativeCost":1.3e-7,"priorityFeePerGasWei":"1152500","priorityFeePerGasGwei":0.0012}},"source":{"method":"eth_getBlockByNumber + eth_feeHistory","license":"public RPC; no terms beyond fair-use rate limits","provider":"public-evm-rpc","rpcEndpoint":"https://mainnet.base.org"}}],"total":1,"source":{"url":"https://2s.io","license":"No upstream license — computed by 2s.io from public RPC","provider":"EVM JSON-RPC (eth_feeHistory)"}},"meta":{"cost":{"usd":0.001,"tier":0},"caller":"x402","version":null,"endpoint":"crypto.gas-oracle","settlement":{"txHash":"0x5cea61838302739f0ba91b1bb825a653a2d6229604af4e97a0afbc36ce0d6ddb","network":"eip155:8453","success":true}}}},"exampleRequest":{"chain":"base"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WLdJYmIcTy7rJQe6AMvSA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time EVM gas price tiers (slow/standard/fast) derived from recent block priority-fee percentiles plus a transfer cost estimate, for Ethereum, Base, Polygon, Arbitrum, or Optimism.","exampleAgentPrompt":"What are the current slow, standard, and fast gas prices on Ethereum right now, and how much would a basic ETH transfer cost?","exampleUseCases":null,"resultDescription":"Returns the latest block baseFeePerGas, three gas price tiers (slow/standard/fast) derived from priority-fee percentiles (p25/p50/p75) over the trailing 4 blocks, and a 21,000-gas transfer cost estimate denominated in the chain's native unit. Data is approximately 5 seconds fresh.","failureModes":["Unsupported chain value returns 400 or validation error","Network congestion or upstream RPC unavailability may return 5xx","Missing required 'chain' query parameter causes request rejection","Rate limiting if usage exceeds quota without valid x402 payment"],"whenToPreferThis":"Use this endpoint when you need real-time, multi-tier EVM gas price data (slow/standard/fast tiers) with ~5s freshness across Base, Ethereum, Polygon, Arbitrum, or Optimism. Prefer this over static estimates or training-data-based answers when a live transaction is being prepared and accurate fee estimation matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T03:43:27.285Z","isFirstParty":false}