{"uid":"cap_zsnopHJ1IwDX6T62FQaCQ","slug":"base-gas-oracle-015b129b","name":"Base Gas Oracle","description":"Current Base gas in one call: the live gas price, the current base fee, the base-fee range across the last 20 blocks, whether fees are rising, falling, or flat, and a cheap-window hint drawn from that data. Use this when an agent wants to time a transaction instead of paying whatever the moment charges.","url":"https://stall-row-production.up.railway.app/v1/gas-oracle?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":[],"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"schema":{"type":"object"},"example":{"type":"object","required":["chain","latest_block","gas_price_gwei","base_fee_gwei","trend","cheapest_window_hint"],"properties":{"note":{"type":"string"},"chain":{"type":"string"},"trend":{"enum":["rising","falling","flat"],"type":"string"},"as_of_epoch":{"type":"integer"},"latest_block":{"type":"integer"},"base_fee_gwei":{"type":"string"},"blocks_sampled":{"type":"integer"},"gas_price_gwei":{"type":"string"},"cheapest_window_hint":{"type":"string"},"base_fee_max_gwei_20_blocks":{"type":"string"},"base_fee_min_gwei_20_blocks":{"type":"string"}}}}}}},"responseSchema":null,"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_Kt9Qkt9x3AZm6CDjsWr1C","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 live Base network gas metrics in one call: current gas price, base fee, 20-block base-fee range, fee trend direction, and a cheap-window timing hint.","exampleAgentPrompt":"What are gas fees like on Base right now — is it a good time to send a transaction, or should I wait for them to drop?","exampleUseCases":[{"title":"Time a DeFi transaction for low fees","prompt":"I'm about to swap tokens on Base — check current gas fees and tell me if now is a good moment or if I should wait for fees to come down."},{"title":"Monitor gas before an NFT mint","prompt":"I want to mint an NFT on Base in the next hour. Can you check the current gas price, the trend over recent blocks, and give me a recommendation on when to pull the trigger?"},{"title":"Automated agent cost estimation","prompt":"Before you execute that on-chain transaction on Base, fetch the current gas price and base fee so I know roughly what it'll cost me and whether fees are trending up or down."}],"resultDescription":"A JSON object containing: the chain identifier, the latest block number, current gas price in gwei, current base fee in gwei, min and max base fee across the last 20 blocks, number of blocks sampled, fee trend direction (rising/falling/flat), a cheapest-window hint string, the epoch timestamp of the reading, and an optional note.","failureModes":["RPC node unavailable — may return 5xx or stale data","Network congestion causing delayed block data","Incorrect method type returns 400 validation error","Service downtime on Railway deployment returns 503"],"whenToPreferThis":"Use this endpoint when an agent needs to make a real-time gas timing decision on the Base network, especially when cost optimization matters. It bundles gas price, base fee, trend analysis, and a timing hint into a single call, avoiding the need to query multiple RPC endpoints or compute rolling statistics manually. Prefer it over raw RPC calls when you want a human-readable trend and cheapest-window recommendation out of the box.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:05:10.236Z","isFirstParty":false,"canonicalSlug":"base-gas-oracle-015b129b"}