Class: BlockTxnPacket

net/packets~BlockTxnPacket

new BlockTxnPacket(responsenullable, witnessnullable)

Represents a blocktxn packet.

Parameters:
Name Type Attributes Description
response TXResponse <nullable>
witness Boolean <nullable>
Properties:
Name Type Description
response TXResponse
witness Boolean
Source:

Methods

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

Instantiate blocktxn packet from serialized data.

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

(static) fromReader(br) → {BlockTxnPacket}

Instantiate blocktxn packet from buffer reader.

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

(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 blocktxn packet.

Source:
Returns:
Type
Buffer

toWriter(bw)

Serialize blocktxn packet to writer.

Parameters:
Name Type Description
bw BufferWriter
Source: