Skip to content
Developer Handbook

Blockchain, P2P and zero-conf

Request: Get Data (“getdata”)

On this page
{ "title":"GETDATA", "related":["/protocol","/protocol/network/messages/inv.html"] }

Requests information (generally previously announced via an inv message) from a peer. As such, a getdata request carries the same general format as an inventory message and is used to request any items that the node was previously unaware.

Message Format

Field Length Format Description
inventory count variable variable length integer The number of inventory items being requested in this message.
inventory items inventory_count * 36 bytes inventory_count inventory items The set of inventory items being requested.

Server Implementations

Bitcoin Unlimited

Client Implementations

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.