{"uid":"cap_N3rSTSaLcbiyvF1gXbXlo","slug":"base-network-gas-price-oracle-c91e98f5","name":"Base Network Gas Price Oracle","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/api/base-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","properties":{"gas_limit":{"type":"integer","maximum":30000000,"minimum":21000,"examples":[21000,150000],"description":"Gas units to price (default 21000)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"block":37000000,"chain":"base","tiers":{"fast":{"est_cost_usd":0.0007,"max_fee_gwei":0.025,"max_priority_fee_gwei":0.01},"slow":{"est_cost_usd":0.0005,"max_fee_gwei":0.006,"max_priority_fee_gwei":0.001},"standard":{"est_cost_usd":0.0005,"max_fee_gwei":0.011,"max_priority_fee_gwei":0.001}},"sources":["https://mainnet.base.org"],"chain_id":8453,"tx_fields":{"gas":"0x5208","type":"0x2","maxFeePerGas":"0xa7d8c0","maxPriorityFeePerGas":"0xf4240"},"congestion":0.42,"updated_at":"2026-10-29T13:30:00Z","base_fee_gwei":0.005,"gas_price_gwei":0.006,"recommended_tier":"standard","gas_price_wei_hex":"0x5b8d80","est_transfer_cost_eth":1.26e-7,"max_priority_fee_gwei":0.001,"max_priority_fee_wei_hex":"0xf4240"}},"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_nPaAZFvkA1ETEc4v2J-85","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 Base (Layer 2) gas prices across slow/standard/fast tiers with estimated USD costs for a given gas limit","exampleAgentPrompt":"What are the current gas prices on Base — give me the slow, standard, and fast tiers with their estimated USD costs, and tell me what the recommended tier is right now?","exampleUseCases":[{"title":"Pre-trade gas cost estimation","prompt":"Before I submit this token swap on Base, what will the gas cost me in USD at the standard tier? Assume 150000 gas units."},{"title":"Network congestion check before deployment","prompt":"Is Base congested right now? Give me the current congestion level and what maxFeePerGas I should use for a fast transaction."},{"title":"Automated DeFi bot fee management","prompt":"I need the current Base gas prices across all tiers so my trading bot can decide whether fees are low enough to execute arbitrage — what are the current gwei values and USD estimates?"}],"resultDescription":"A JSON object containing: current block number, chain ID (8453), base fee in gwei, gas price in gwei, congestion score (0-1), recommended tier, per-tier breakdown (slow/standard/fast) with maxFeePerGas, maxPriorityFeePerGas in gwei, estimated cost in USD, EIP-1559 tx fields as hex strings (type 0x2), estimated ETH transfer cost, and a timestamp. Sources array lists the RPC endpoints consulted.","failureModes":["RPC node unavailable — Base mainnet.base.org unresponsive, may return 502 or stale data","gas_limit below 21000 or above 30000000 returns 400 validation error","Payment failure via x402 — USDC balance insufficient on Base or payment header malformed","Stale data if Base chain is experiencing unusual block times","Network timeout if Base RPC is congested during high traffic periods"],"whenToPreferThis":"Use this endpoint when you need real-time, multi-tier EIP-1559 gas estimates specifically for Base (Chain ID 8453) with USD cost estimates pre-calculated — particularly useful for AI agents that need to autonomously decide gas settings without API keys, paying only $0.001 USDC per call via x402. Prefer over Ethereum mainnet gas APIs when targeting Base L2, and prefer over static gas estimates when network conditions matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:49.737Z","isFirstParty":false,"canonicalSlug":"base-network-gas-price-oracle-f098aea0"}