Namespace: getdata

bitmessage/messages. getdata

getdata message. getdata is used in response to an inv message to retrieve the content of a specific object after filtering known elements.

Source:
See:

Methods

(static) decode(buf) → {DecodeResult}

Decode getdata message.

Parameters:
Name Type Description
buf Buffer

Message

Source:
Returns:
Type
DecodeResult

(static) decodePayload()

Decode getdata message payload. The same as decode.

Source:

(static) encode(vectors) → {Buffer}

Encode getdata message.

Parameters:
Name Type Description
vectors Array.<Buffer>

Inventory vector list

Source:
Returns:

Encoded message.

Type
Buffer

(static) encodePayload()

Encode getdata message payload. The same as encode.

Source:

Type Definitions

DecodeResult

Type:
  • Object
Properties:
Name Type Description
vectors Array.<Buffer>

List of inventory vectors

length number

Real data length

Source: