Class: TXCount

TXCount(height, index)

TX Count

This is used for tracking the block height and transaction index for the wallet. This is used as entry point into indexes that are organized by count.

Constructor

new TXCount(height, index)

Create tx count record.

Parameters:
Name Type Description
height Number
index Number
Source:

Methods

(static) decode(data) → {TXCount}

Instantiate a tx count from a buffer.

Parameters:
Name Type Description
data Buffer
Source:
Returns:
Type
TXCount

(private) decode(data)

Deserialize.

Parameters:
Name Type Description
data Buffer
Source:

encode() → {Buffer}

Serialize.

Source:
Returns:
Type
Buffer