{"uid":"cap_iiWmvt-XjhajgOldYaV-U","slug":"block-hash-at-a-given-bitcoin-height-e5f94ed8","name":"Block Hash at a Given Bitcoin Height","description":"Block hash at a given Bitcoin height — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/btc-block-at-height?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"height":{"type":"integer","minimum":0}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"btc-block-at-height","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.003,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vzu3BGPKpX0TE8ajWdRAo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the block hash for a specified Bitcoin block height","exampleAgentPrompt":"What's the Bitcoin block hash at height 840000?","exampleUseCases":[{"title":"Verify Bitcoin block anchor","prompt":"Can you look up the block hash at Bitcoin height 800000 so I can verify my timestamp anchor is pointing to the right block?"},{"title":"Halving block hash lookup","prompt":"What's the block hash for the Bitcoin block at height 840000 — the most recent halving?"},{"title":"Audit trail block reference","prompt":"I need the block hash for Bitcoin block number 500000 to include in an audit report as an on-chain reference point."}],"resultDescription":"Returns a JSON object with a boolean ok field, an endpoint type identifier, the block hash at the requested height, a payment receipt (including transaction hash, USD amount, and receipt ID), and a generated_at ISO8601 timestamp.","failureModes":["Invalid or negative height value — returns an error response","Height exceeds current chain tip — block does not yet exist","Network or upstream Bitcoin node unavailability — may return a 5xx or error payload","Payment failure — x402 payment not accepted, request not processed"],"whenToPreferThis":"Use this endpoint when you need to resolve a specific Bitcoin block height to its canonical block hash, particularly in blockchain auditing, timestamp verification, or cross-chain reference scenarios. Prefer this over manual RPC calls when you need a simple pay-per-call REST interface without running your own Bitcoin node.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:03.929Z","isFirstParty":false,"canonicalSlug":"block-hash-at-a-given-bitcoin-height-e5f94ed8"}