{"uid":"cap_rjCSbUJDGWPQjF84YGVqD","slug":"desk-lead-x402-block-height-lookup-cd679872","name":"DESK LEAD x402 - Block Height Lookup","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/block","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"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"height":1,"product":"block"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qTErpFU0nj7U2_fEWqwex","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current block height for BSC, Base, or both blockchain networks via a micropayment-gated API using the x402 protocol.","exampleAgentPrompt":"What's the current block height on the Base network right now? Use the x402 micropayment endpoint and query for Base only.","exampleUseCases":[{"title":"Real-time Base block monitoring","prompt":"Can you grab the latest block height on the Base network for me? I need to know how far along the chain is right now."},{"title":"Cross-chain block sync check","prompt":"Fetch the current block height for both BSC and Base at the same time so I can compare where each chain is."},{"title":"BSC block height snapshot","prompt":"What's the current block number on Binance Smart Chain right now? Just give me the latest height."}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating success, a 'height' integer representing the current block number, and a 'product' string identifying the endpoint ('block'). Optionally scoped to BSC, Base, or both networks depending on the 'network' query parameter.","failureModes":["Missing or invalid x402 payment header returns HTTP 402 Payment Required","Invalid network enum value returns a validation error","Payment on unsupported network (non-Base for v2) may be rejected","Cloudflare Worker downtime returns 5xx errors","Querying both networks may return partial data if one chain RPC is degraded"],"whenToPreferThis":"Use this endpoint when you need a lightweight, real-time block height lookup for BSC or Base (or both) and are operating within an x402 micropayment workflow. Ideal for agents that already handle x402 payment headers and need cheap ($0.01 USDC), on-demand blockchain state checks without requiring a full RPC node connection or a heavier blockchain data provider.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:33:33.508Z","isFirstParty":false}