Class: TXRequest

net/bip152~TXRequest(optionsopt, nullable)

TX Request Represents a BlockTransactionsRequest (bip152): getblocktxn packet.

Constructor

new TXRequest(optionsopt, nullable)

TX Request

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

Methods

(static) fromCompact(block) → {TXRequest}

Instantiate request from compact block.

Parameters:
Name Type Description
block CompactBlock
Source:
Returns:
Type
TXRequest

fromCompact(block) → {TXRequest}

Inject properties from compact block.

Parameters:
Name Type Description
block CompactBlock
Source:
Returns:
Type
TXRequest

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) → {BufioWriter}

Write serialized request to buffer writer.

Parameters:
Name Type Description
bw BufioWriter
Source:
Returns:
Type
BufioWriter