Module: wallet/common

Members

(static) coinSelectionTypes :String

Wallet coin selection types.

Type:
  • String
Properties:
Name Type Description
DB_ALL String
DB_VALUE String
DB_SWEEPDUST String
DB_AGE String
Source:

Methods

(static) isName(key) → {Boolean}

Test whether a string is eligible to be used as a name or ID.

Parameters:
Name Type Description
key String
Source:
Returns:
Type
Boolean

(static) sortCoins(coins) → {Array.<Coin>}

Sort an array of coins by height.

Parameters:
Name Type Description
coins Array.<Coin>
Source:
Returns:
Type
Array.<Coin>

(static) sortDeps(txs) → {Array.<TX>}

Sort an array of transactions in dependency order.

Parameters:
Name Type Description
txs Array.<TX>
Source:
Returns:
Type
Array.<TX>

(static) sortTX(txs) → {Array.<TXMeta>}

Sort an array of transactions by time.

Parameters:
Name Type Description
txs Array.<TXMeta>
Source:
Returns:
Type
Array.<TXMeta>