getblockheader
Bitcoin node API
getblockheader | Bitcoin
The getblockheader method retrieves detailed information about a block header given its hash. Available on Bitcoin via Chainstack.
POST
getblockheader
TheDocumentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
getblockheader method retrieves detailed information about a block header given its hash. This includes the block’s hash, the number of confirmations, its height in the blockchain, version, Merkle root, block time, nonce, difficulty, total work done in the chain up to this block, and the hashes of the previous and next blocks if available.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
blockhash(required): The hash of the block header to retrieve.
Response
result— an object containing detailed information about the block header, such as its hash, confirmations, height, version, Merkle root, time, nonce, difficulty, total work, number of transactions, and previous and next block hashes.error— an object containing an error message if an error occurred, otherwisenull.id— an integer representing the ID of the request.
Use case
Thegetblockheader method is essential for applications and services that need to verify the blockchain’s integrity or analyze its properties. It provides critical information about individual blocks without the need to download the entire block, making it useful for lightweight clients and block explorers.Body
application/json
Last modified on May 18, 2026