{"uid":"cap_E4Ypfu446soLwUv8OKK9X","slug":"chainquery-bitcoin-getblockheader-rpc-e647cea3","name":"chainquery Bitcoin getblockheader RPC","description":"chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Block header fields by hash from chainquery's independent full node: version, merkle root, time, bits, nonce, previous hash. Bitcoin Core getblockheader.","url":"https://x402.chainquery.com/v1/rpc/getblockheader","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":"getblockheader result"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"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_rEBZS9v2Bm8hFKoAwPrQf","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":"Fetches block header fields (version, merkle root, timestamp, bits, nonce, previous hash) for a given Bitcoin block hash via Bitcoin Core's getblockheader RPC, pay-per-call over x402.","exampleAgentPrompt":"Can you pull the block header for Bitcoin block 000000000000000000036e6a4a2dffc1d86c35b85cbaeea98d6e9fa25e5c3ff0 — I need the version, merkle root, timestamp, bits, nonce, and previous block hash.","exampleUseCases":[{"title":"Verify Bitcoin block timestamp for settlement","prompt":"I need to confirm when Bitcoin block 00000000000000000003ce507028f3f21b9d7e0d9f39b0c0f0a0d0e0f0a0d0e0f was mined — can you pull the exact timestamp and previous hash from the block header?"},{"title":"Check merkle root for transaction verification","prompt":"Can you fetch the merkle root and nonce for block 000000000000000000056eef47e03db0bb8c8ef9f3a5d0c0b0a0f0e0d0c0b0a0f? I'm validating some transaction proofs."},{"title":"Audit block header chain integrity","prompt":"Pull the block headers for these three Bitcoin blocks and give me the version, bits, previous hash, and timestamp for each: 000000000000000000036e6a4a2dffc1d86c35b85cbaeea98d6e9fa25e5c3ff0, 000000000000000000056eef47e03db0bb8c8ef9f3a5d0c0b0a0f0e0d0c0b0a0f, and 0000000000000000000f0a0b0c0d0e0f0a0b0c0d0e0f0a0b0c0d0e0f0a0b. I need to verify the chain continuity."}],"resultDescription":"Returns a Bitcoin Core getblockheader result object containing the block's version, merkleroot, time, bits, nonce, previousblockhash, and other header fields for the specified block hash.","failureModes":["Invalid or unknown block hash returns an RPC error result","Malformed params JSON array causes a 400-level error","Payment failure or insufficient USDC balance prevents the call from completing","Node temporarily unavailable results in a 5xx error"],"whenToPreferThis":"Use this endpoint when you need raw Bitcoin block header fields (version, merkle root, nonce, bits, timestamp, previous hash) from an independent Bitcoin Core full node without needing to register for an API key, and you are willing to pay $0.005 USDC per call via x402. Prefer this over general blockchain explorers when you need direct Bitcoin Core RPC semantics or programmatic access in an agent workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:51:52.063Z","isFirstParty":false}