{"uid":"cap_dnXS7Egl-jCMrsWnoa7Go","slug":"agenttoll-app-base-network-gas-price-latest-block-473f8155","name":"agenttoll.app Base Network Gas Price & Latest Block","description":"Base gas price check: the current gas price and latest block number; add ?gasLimit=150000 to also get what a transaction that size costs in ETH and USD","url":"https://agenttoll.app/api/gas","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":{"gasLimit":{"type":"integer","maximum":30000000,"minimum":21000,"description":"Optional. Also price a transaction of this gas size"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"at":"2026-08-05T13:32:13.596Z","chain":"base","estimate":{"ethUsd":1867.28,"ethCost":9.06263e-7,"usdCost":0.001692,"gasLimit":150000},"gasPriceWei":"6041753","latestBlock":49573693,"gasPriceGwei":0.006041753}},"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_gG3nsHbF12aWiDidLAQS-","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 the current Base network gas price and latest block number, with optional transaction cost estimate for a given gas limit","exampleAgentPrompt":"What's the current gas price on Base right now, and how much would a standard 21000-gas transfer cost?","exampleUseCases":[{"title":"Pre-transaction gas check for DeFi bot","prompt":"Before I submit this swap on Base, tell me the current gas price and what a 200000-gas transaction would cost me."},{"title":"Gas-gated agent scheduling","prompt":"Check the current Base gas price — if it's below 0.1 gwei, let me know so I can trigger my contract deployment."},{"title":"Real-time dashboard gas feed","prompt":"Fetch the latest Base gas price and block number so I can update my portfolio dashboard."}],"resultDescription":"Returns the current Base network gas price (in gwei or wei), the latest block number, and optionally a cost estimate for a transaction of the specified gas limit size.","failureModes":["Base RPC node unavailable — may return 5xx error","gasLimit out of range (below 21000 or above 30000000) — validation error","Payment not processed — 402 response if x402 payment header is missing or insufficient","Stale data if upstream Base node is lagging behind chain tip"],"whenToPreferThis":"Use this endpoint when you need a quick, real-time snapshot of Base network gas conditions without setting up your own RPC connection. Ideal for agents that need to gate actions on gas price thresholds, estimate transaction costs before submission, or display live gas data in a dashboard. Prefer this over a full Base RPC call when you want a simple REST interface with no web3 library dependency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:47:58.406Z","isFirstParty":false}