{"uid":"cap_9sy7g20rBDlSK7dsP00I4","slug":"desk-lead-x402-gas-price-oracle-0766039d","name":"DESK LEAD x402 — Gas Price Oracle","description":"Micropay research APIs (x402 v2 + bazaar). Free catalog at /.well-known/x402.json. Primary v2 accepts: Base eip155:8453 only. Legacy X-PAYMENT-TX still supports bsc|base via acceptsV1. Headers: X-PAYMENT-TX, X-PAYMENT-NETWORK, PAYMENT-SIGNATURE. No financial advice.","url":"https://desk-x402.desk-x402-gh.workers.dev/v1/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"network":{"enum":["bsc","base","both"],"type":"string","description":"Which rail(s) to quote"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"gas":{"bsc":{"gwei":1},"base":{"gwei":0.01}},"product":"gas"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YZDx3x0R8N4I1bi6VjA9X","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current gas prices in gwei for BSC and/or Base blockchain networks","exampleAgentPrompt":"What are the current gas prices on both Base and BSC right now in gwei? I need to decide which chain to use for a transaction.","exampleUseCases":[{"title":"Choosing cheapest chain for a transaction","prompt":"Check the current gas fees on both Base and BSC and tell me which one is cheaper right now — I need to send a token transfer and want to minimize fees."},{"title":"Monitoring Base network congestion","prompt":"What's the current gas price on Base in gwei? I want to know if the network is congested before I submit my contract interaction."},{"title":"Building a fee estimate for a DeFi bot","prompt":"Fetch the latest gwei prices for both BSC and Base so I can calculate the total cost of executing my arbitrage trade on each network."}],"resultDescription":"A JSON object with a boolean `ok` field, a `gas` object containing per-network gwei prices (e.g. `{bsc: {gwei: 1}, base: {gwei: 0.01}}`), and a `product` field set to `\"gas\"`. The response is fast and reflects real-time network conditions.","failureModes":["Payment not provided or invalid x402 payment headers — returns 402 Payment Required","Invalid `network` query parameter value — may return 400 or default behavior","Network connectivity issues to BSC/Base RPC nodes — may return error or stale data","Rate limiting if payment is not included — endpoint requires $0.1 USDC per call"],"whenToPreferThis":"Choose this endpoint when you need real-time gas price data for Base or BSC (or both) in a single micropayment-gated API call. It is ideal for agents that need to estimate transaction costs, compare chain fees, or dynamically route transactions to the cheapest available network. It supports the x402 micropayment protocol, making it suitable for autonomous agents with on-chain payment capabilities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:44:26.078Z","isFirstParty":false}