Files

17 lines
841 B
Markdown
Raw Permalink Normal View History

2020-02-06 12:37:37 -05:00
<div class="cwikmeta">{
"title":"GETDATA",
"related":["/protocol","/protocol/p2p/inv"]
}</div>
2020-02-06 18:24:36 -05:00
# Request: Get Data (“getdata”)
Requests information (generally previously announced via an [`inv`](/protocol/network/messages/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.
2020-02-06 18:24:36 -05:00
## Message Format
| Field | Length | Format | Description |
|--|--|--|--|
| inventory count | variable | [variable length integer](/protocol/formats/variable-length-integer) | The number of inventory items being requested in this message. |
| inventory items | `inventory_count` * 36 bytes | `inventory_count` [inventory items](/protocol/network/messages/inv#inventory-item-format) | The set of inventory items being requested. |