Class: Balance

wallet~Balance(account)

Balance

Constructor

new Balance(account)

Create a balance.

Parameters:
Name Type Description
account Number
Source:

Methods

(static) fromRaw(acct, data) → {TXDBState}

Instantiate balance from serialized data.

Parameters:
Name Type Description
acct Number
data Buffer
Source:
Returns:
Type
TXDBState

applyTo(balance)

Apply delta.

Parameters:
Name Type Description
balance Balance
Source:

(private) fromRaw(data) → {TXDBState}

Inject properties from serialized data.

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

inspectSymbol()

Inspect balance.

Parameters:
Type Description
String
Source:

toJSON(minimalnullable) → {Object}

Convert balance to a more json-friendly object.

Parameters:
Name Type Attributes Description
minimal Boolean <nullable>
Source:
Returns:
Type
Object

toRaw() → {Buffer}

Serialize balance.

Source:
Returns:
Type
Buffer