Class: Paths

wallet.Paths()

Paths Represents the HD paths for coins in a single transaction.

Constructor

new Paths()

Create paths

Properties:
Name Type Description
outputs Array.<Map>

Paths.

Source:

Methods

add(index, path) → {Path}

Add a single entry to the collection.

Parameters:
Name Type Description
index Number
path Path
Source:
Returns:
Type
Path

get(index) → {Path|null}

Get a path.

Parameters:
Name Type Description
index Number
Source:
Returns:
Type
Path | null

has(index) → {Boolean}

Test whether the collection has a path.

Parameters:
Name Type Description
index Number
Source:
Returns:
Type
Boolean

isEmpty() → {Boolean}

Test whether there are paths.

Source:
Returns:
Type
Boolean

remove(index) → {Path|null}

Remove a path and return it.

Parameters:
Name Type Description
index Number
Source:
Returns:
Type
Path | null