{ "title":"GETDATA", "related":["/protocol","/protocol/p2p/inv"] }

Request: Get Data (“getdata”)

Requests information (generally previously announced via an INV) from a peer.

A GETDATA request is a vector of INV-formatted data.

Message Format

Field Length Format Description
vector length N variable compact int number of items
item 0 type 4 bytes unsigned int(LE) type of the requested object
item 0 hash 32 bytes bytes hash of the requested object
item N-1 type
item N-1 hash


The type of the desired object. See INV for specific values


The hash identifier of the desired object.

Server Implementations

Bitcoin Unlimited

Client Implementations