{"uid":"cap_rFwR1KWn5OoPMfwCMpV3o","slug":"chainquery-getblockhash-8fc129b8","name":"chainquery getblockhash","description":"chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Block hash at a given height from chainquery's independent full node. Bitcoin Core getblockhash.","url":"https://x402.chainquery.com/v1/rpc/getblockhash","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":{"params":{"type":"string","description":"optional: JSON-encoded array of positional RPC params"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"description":"getblockhash result"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"params":"[840000]"}}},"response":{"result":"0000000000000000000320283a032748cef8227873ff4872689bf23f1cda83a5"}},"exampleRequest":{"params":"[840000]"},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_McRsc5fTjx4MGMsQRDEGR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 Bitcoin block at a given height using Bitcoin Core's getblockhash RPC, served from chainquery's independent full node via x402 pay-per-call.","exampleAgentPrompt":"What's the Bitcoin block hash at height 840000? Query chainquery's independent full node for me.","exampleUseCases":null,"resultDescription":"Returns the Bitcoin block hash (a 64-character hex string) corresponding to the requested block height, as returned by Bitcoin Core's getblockhash RPC method.","failureModes":["Block height out of range (negative or above current chain tip) returns an RPC error","Missing or malformed params query parameter returns a parse error","Payment failure via x402 returns 402 Payment Required before the RPC call is executed","Node temporarily unavailable returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need a trustworthy, independently-operated Bitcoin full node to resolve a block height to its canonical block hash — especially when you want pay-per-call access without signing up for an API key, or when you want to cross-check block hashes against a node not operated by a major provider.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:53:02.001Z","isFirstParty":false}