Class: TXResponse

net/bip152~TXResponse(optionsopt, nullable)

TX Response Represents BlockTransactions (bip152): blocktxn packet.

Constructor

new TXResponse(optionsopt, nullable)

Create a tx response.

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

Methods

(static) fromBlock(block, req) → {TXResponse}

Instantiate response from block.

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

fromBlock(block, req) → {TXResponse}

Inject properties from block.

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

fromOptions(options) → {this}

Inject properties from options.

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

getSize() → {Number}

Calculate request serialization size.

Source:
Returns:
Type
Number

read(br) → {this}

Inject properties from buffer reader.

Parameters:
Name Type Description
br bio.BufferReader
Source:
Returns:
Type
this

write(bw)

Write serialized response to buffer writer.

Parameters:
Name Type Description
bw BufioWriter
Source: