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) → {Object}

Decode getdata message.

Parameters:
Name Type Description
buf Buffer

Message

Source:
Returns:

Decoded getdata structure.

Type
Object

(static) decodePayload(buf) → {Object}

Decode getdata message payload.

Parameters:
Name Type Description
buf Buffer

Message payload

Source:
Returns:

Decoded inv structure.

Type
Object

(static) encode(inventory) → {Buffer}

Encode getdata message.

Parameters:
Name Type Description
inventory Array.<Buffer>

Inventory vector list

Source:
Returns:

Encoded message.

Type
Buffer

(static) encodePayload(inventory) → {Buffer}

Encode getdata message payload.

Parameters:
Name Type Description
inventory Array.<Buffer>

Inventory vector list

Source:
Returns:

Encoded payload.

Type
Buffer