Skip to content
Developer Handbook

Blockchain, P2P and zero-conf

Request: Get Block Transactions ("getblocktxn")

On this page

Requests unknown transactions in a block from a peer.

Upon receiving a cmpctblock message, a node may determine it is still missing some transactions from the recent block, which it can request using a getblocktxn message. A node receiving a getblocktxn message, that has recently sent a cmpctblock message for the specified block to this peer, must respond with either a blocktxn message or a block message.

Format

Field Length Format Description
block hash 32 bytes bytes The hash of the block containing the desired transactions.
indexes count variable variable length integer The number of transactions being requested.
indexes variable indexes_count variable length integers The differentially encoded indexes of the transactions within the block being requested.
Source and attribution

Documentation.cash (source repository) · Reference.cash (source repository)
Software Verde, Bitcoin Unlimited and the project contributors. Collection license CC BY 3.0 US. Individual notices are retained.
Source snapshot from November 29, 2026. BCH Ninja combined the community editions and updated navigation.