bitcoind.app
CommandsGuidesContact ↗
Home/Blockchain/getblockheader
Blockchain

getblockheader

Returns information about a block header given its hash.

Parameters

blockhashstringREQUIRED
The block hash
verbosebooleanoptional
true for JSON object, false for hex. Default: true

Returns

objectBlock header data

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"getblockheader","params":["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "hash": "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09",
  "confirmations": 872561,
  "height": 1000,
  "version": 1,
  "merkleroot": "fe28050b93...",
  "time": 1232346882
}
← Previous
getblockhash
Next →
getblockstats

More Blockchain Commands

getbestblockhashgetblockgetblockchaininfogetblockcountgetblockfiltergetblockhash

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗