{"uid":"cap_HNKWzbAv-jKVc3KGuFBUu","slug":"fastx402-bitcoin-block-height-lookup-c38c2621","name":"FastX402 Bitcoin Block Height Lookup","description":"216 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/bitcoin-block-height?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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"hash":{"type":"string"},"height":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"hash":"00000000000000000002a7c4c1e48d76c5a37902165a270156b7a8d72728a054","height":867234}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CjYuiQaeCYLKFHBxxZtk3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current Bitcoin blockchain height (block number) and the latest block hash via a pay-per-call API requiring no account or API key.","exampleAgentPrompt":"What's the current Bitcoin block height and latest block hash right now?","exampleUseCases":[{"title":"Monitor Bitcoin blockchain sync progress","prompt":"Check the current Bitcoin block height so I can see if my node is fully synced with the network."},{"title":"Verify Bitcoin transaction confirmation depth","prompt":"What block is Bitcoin on right now? I need the current height to calculate how many confirmations my transaction has."},{"title":"Log Bitcoin chain tip for audit trail","prompt":"Fetch me the latest Bitcoin block height and hash — I want to record the current chain tip for my hourly blockchain audit log."}],"resultDescription":"Returns a JSON object with two fields: 'height' (integer, the current Bitcoin block height, e.g. 867234) and 'hash' (string, the hex-encoded hash of the latest block, e.g. '00000000000000000002a7c4c1e48d76c5a37902165a270156b7a8d72728a054').","failureModes":["Payment failure if USDC balance is insufficient or x402 payment not properly submitted — returns 402 Payment Required","Network/upstream node unavailability may return 503 or 500 if the Bitcoin node backing the service is unreachable","Rate limiting if too many requests are sent in rapid succession"],"whenToPreferThis":"Choose this endpoint when you need a quick, no-account, no-API-key lookup of the current Bitcoin block height and hash, and are comfortable paying $0.002 USDC per call via the x402 micropayment protocol on Base or Solana. Ideal for AI agents that need on-demand blockchain state without managing API credentials.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T19:22:10.251Z","isFirstParty":false,"canonicalSlug":"fastx402-bitcoin-block-height-lookup-c38c2621"}