2019-12-12 23:11:10 -05:00
<div class="cwikmeta">{
"title":"HEADERS",
"related":["/protocol","/protocol/p2p/getheaders"]
}</div>
* Provides a contiguous set of block headers *
2020-01-14 09:52:38 +01:00
## HEADERS Message Format
2019-12-12 23:11:10 -05:00
2020-01-14 09:52:38 +01:00
|Size in bytes|Description|Data type|
|-------------|-----------|---------|
|1+ | Number of headers | varint|
|(81 + (1+)) * count |[Block headers ](/protocol/blockchain/block/block-header/ ) and number of txs in the block|Blockheader + varint|
2019-12-12 23:11:10 -05:00
2020-01-14 09:52:38 +01:00
No more than 2000 block headers may be sent at one time. Block headers in this array MUST be sequential, ordered by height and without range gaps.
2019-12-12 23:11:10 -05:00
2020-01-14 09:52:38 +01:00
The number of txs in header is **DEPRECATED ** and should be ignored. Nodes are allowed to send 0 regardless of the actual number of transactions in the block.