Class: GetBlockTxnPacket

net/packets~GetBlockTxnPacket(requestnullable)

GetBlockTxn Packet

Constructor

new GetBlockTxnPacket(requestnullable)

Create a getblocktxn packet.

Parameters:
Name Type Attributes Description
request TXRequest <nullable>
Properties:
Name Type Description
request TXRequest
Source:

Extends

  • Packet

Methods

(static) fromRaw(data, encnullable) → {GetBlockTxnPacket}

Instantiate getblocktxn packet from serialized data.

Parameters:
Name Type Attributes Description
data Buffer
enc String <nullable>
Source:
Returns:
Type
GetBlockTxnPacket

(static) fromReader(br) → {GetBlockTxnPacket}

Instantiate getblocktxn packet from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:
Returns:
Type
GetBlockTxnPacket

(private) fromRaw(data)

Inject properties from serialized data.

Parameters:
Name Type Description
data Buffer
Source:

(private) fromReader(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

toRaw() → {Buffer}

Serialize getblocktxn packet.

Source:
Returns:
Type
Buffer

toWriter(bw)

Serialize getblocktxn packet to writer.

Parameters:
Name Type Description
bw BufferWriter
Source: