Class: BlockTxnPacket

net/packets~BlockTxnPacket(responseopt, nullable)

BlockTxn Packet

Constructor

new BlockTxnPacket(responseopt, nullable)

Create a blocktxn packet.

Parameters:
Name Type Attributes Description
response bip152.TXResponse <optional>
<nullable>
Properties:
Name Type Description
response bip152.TXResponse
Source:

Extends

  • Packet

Methods

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

read(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br bio.BufferReader
Source:

write(bw)

Serialize blocktxn packet to writer.

Parameters:
Name Type Description
bw BufioWriter
Source: