Class: TXResponse

net/bip152~TXResponse(optionsnullable)

TX Response Represents BlockTransactions (bip152): blocktxn packet.

Constructor

new TXResponse(optionsnullable)

Create a tx response.

Parameters:
Name Type Attributes Description
options Object <nullable>
Properties:
Name Type Description
hash Hash
txs Array.<TX>
Source:
See:

Methods

(static) fromBlock(block) → {TXResponse}

Instantiate response from block.

Parameters:
Name Type Description
block Block
Source:
Returns:
Type
TXResponse

(private) fromBlock(block) → {TXResponse}

Inject properties from block.

Parameters:
Name Type Description
block Block
Source:
Returns:
Type
TXResponse

(private) fromOptions(options) → {TXResponse}

Inject properties from options.

Parameters:
Name Type Description
options Object
Source:
Returns:
Type
TXResponse

getSize() → {Number}

Calculate request serialization size.

Source:
Returns:
Type
Number

(private) read(br) → {TXResponse}

Inject properties from buffer reader.

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

(private) write(bw)

Write serialized response to buffer writer.

Parameters:
Name Type Description
bw BufferWriter
Source: