Files
specification/protocol/network/messages/getdata.md
T
AndrewStone f1fb956302 wiki commit
2020-11-04 13:23:02 -05:00

1.0 KiB

{ "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

Type

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

Hash

The hash identifier of the desired object.

Server Implementations

Bitcoin Unlimited

Client Implementations