{"uid":"cap_IER_8oIrumSoG5USFyMeL","slug":"bitcoin-block-lookup-via-x402-micropayment-d8cd4083","name":"Bitcoin Block Lookup via x402 Micropayment","description":"X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.","url":"https://x402helper.xyz/89e509/btc/block?utm_source=zero.xyz","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","required":[],"properties":{"hash":{"type":"string","default":null,"description":"Block hash (64 hex characters); alternative to height"},"height":{"type":"integer","default":null,"description":"Block height; omit height and hash for the chain tip"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.009","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.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BgGYsO2G2rsFxJj8H4sXj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches Bitcoin block data by block height or hash (or the chain tip) for a $0.009 USDC micropayment per call.","exampleAgentPrompt":"What's in Bitcoin block number 840000? Pull the full block data for me.","exampleUseCases":[{"title":"Verify a transaction's block inclusion","prompt":"Can you look up Bitcoin block 850000 and show me the block details so I can confirm my transaction was included?"},{"title":"Inspect the latest Bitcoin chain tip","prompt":"What's the most recent Bitcoin block right now? Fetch the chain tip block and tell me the height and hash."},{"title":"Look up block by hash","prompt":"I have this Bitcoin block hash — 000000000000000000029e5e0ef3d4e3e7c5e2f8b1a3d4c7f2e1b0a9d8c7b6a5 — can you retrieve the full block data for it?"}],"resultDescription":"A JSON object with success:true and a result field containing block details such as block height, hash, timestamp, transaction count, size, and other block metadata for the requested Bitcoin block.","failureModes":["Invalid block hash (not 64 hex characters) returns an error","Block height out of range or not yet mined returns not found","Payment failure or insufficient USDC balance blocks the request with HTTP 402","Omitting both hash and height returns the chain tip (not an error, but may surprise callers)","Network timeouts if the underlying Bitcoin node is slow"],"whenToPreferThis":"Use this endpoint when an AI agent needs programmatic, pay-per-call access to Bitcoin block data without setting up a full node or subscribing to a block explorer API. Ideal for lightweight, infrequent lookups where the $0.009 USDC micropayment model is preferable to monthly subscriptions. Best when the caller already supports the x402 payment protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T18:49:55.343Z","isFirstParty":false,"canonicalSlug":"bitcoin-block-lookup-via-x402-micropayment-d8cd4083"}