{"uid":"cap_fepQqpOhmu42kkV1glriq","slug":"gas-price-on-base-e5a883e5","name":"Gas Price on Base","description":"Current gas conditions on Base. POST {} and receive the legacy gas price and the EIP-1559 base fee of the latest block, in wei and gwei. Useful for agents deciding whether to transact now or wait.","url":"https://x402-echo-service.onrender.com/chain/gas","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"type":"object","properties":{},"additionalProperties":false},"type":{"const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"]}}},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["gasPriceWei","gasPriceGwei"],"properties":{"baseFeeWei":{"type":"string"},"baseFeeGwei":{"type":"string"},"blockNumber":{"type":"integer"},"gasPriceWei":{"type":"string"},"gasPriceGwei":{"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_GqeYd5KVuXg4VKKNOdGIz","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 legacy gas price and EIP-1559 base fee of the latest block on the Base blockchain, in both wei and gwei.","exampleAgentPrompt":"What are the current gas fees on Base right now — give me both the legacy gas price and the EIP-1559 base fee in gwei so I can decide whether to submit my transaction.","exampleUseCases":[{"title":"Decide whether to transact now","prompt":"Check the current gas price on Base and tell me if fees are low enough to make it worth sending a transaction right now."},{"title":"DeFi bot gas gate check","prompt":"Before executing this on-chain swap, fetch the current Base gas price and base fee in gwei — only proceed if the base fee is under 0.05 gwei."},{"title":"Gas fee monitoring dashboard","prompt":"Pull the latest gas conditions on Base for me — I need the legacy gas price and the EIP-1559 base fee in both wei and gwei, plus the block number they came from."}],"resultDescription":"Returns a JSON object containing the current legacy gas price in wei and gwei, the EIP-1559 base fee in wei and gwei, and the block number of the latest block on Base.","failureModes":["Base RPC node temporarily unavailable — endpoint may return a 5xx error","Network congestion or timeout may cause delayed or failed responses","Returned values reflect the latest block at time of call and may be stale by the time a transaction is broadcast"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call read of current Base gas conditions without setting up your own RPC connection. Ideal for agents that gate transactions on fee thresholds or need to display current gas costs to users. Prefer over full node SDKs when you want a lightweight, metered lookup with no infrastructure overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:42:31.878Z","isFirstParty":false}