{"uid":"cap_R1S98lBv_KgdaIsOXbunV","slug":"base-network-gas-price-latest-block-25eb6831","name":"Base Network Gas Price & Latest Block","description":"Base network gas price and latest block","url":"https://agenttoll-pi.vercel.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":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_kjYKV1AdmDlXmSqgqjz71","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 gas price and latest block number on the Base blockchain network","exampleAgentPrompt":"What's the current gas price on Base and what's the latest block number? I want to know if now is a good time to submit a transaction.","exampleUseCases":[{"title":"Pre-transaction gas cost check","prompt":"Before I submit this swap on Base, can you check what the current gas price is so I can estimate my transaction fee?"},{"title":"DeFi bot gas optimization","prompt":"Check the Base gas price right now — I only want to execute this arbitrage trade if gas is under 0.1 gwei."},{"title":"Base network congestion monitoring","prompt":"What's the current gas price and latest block on Base? I want to know if the network is congested before I deploy my contract."}],"resultDescription":"Returns the current gas price (in gwei or wei) on the Base network and the latest block number, giving a real-time snapshot of network conditions for fee estimation and timing decisions.","failureModes":["RPC node downtime causing inability to fetch latest block or gas price","Network congestion causing stale or delayed data","Payment failure (insufficient USDC balance or x402 protocol error) blocking the request","Response may lag if Base mainnet is experiencing issues"],"whenToPreferThis":"Use this endpoint when you need real-time Base network gas pricing and block data specifically, especially for pre-transaction fee estimation, gas optimization bots, or network congestion checks on the Base L2. Prefer this over general Ethereum gas trackers when targeting Base specifically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:36:40.076Z","isFirstParty":false}