... this.wallet Wallet

Class

Wallet

Wallet(walletName, hash)

Class representing a Wallet containing multiple Accounts.
Constructor

# new Wallet(walletName, hash)

Create a new Wallet instance.
Parameters:
Name Type Description
walletName string The name of the wallet.
hash string A hash that acts as a unique identifier for the wallet.

View Source src/this.wallet.js, line 6

Methods

# createAccount(accountName) → {Account}

Create a new account with pre-built addresses and add it to the wallet.
Parameters:
Name Type Description
accountName string The name of the account to create.

View Source src/this.wallet.js, line 22

- The created account with pre-built addresses.
Account

# generateHash(walletName, hash) → {string}

Generate a cryptographic hash based on the wallet name and the provided hash. This acts as a unique identifier for the wallet.
Parameters:
Name Type Description
walletName string The name of the wallet.
hash string The hash to combine with the wallet name.

View Source src/this.wallet.js, line 44

- The resulting hash.
string

# getAccount(accountName) → {Account}

Get an account by its name.
Parameters:
Name Type Description
accountName string The name of the account to retrieve.

View Source src/this.wallet.js, line 33

- The requested account.
Account

# getWalletStructure() → {Object}

Get the wallet structure with all accounts and their blockchains.

View Source src/this.wallet.js, line 53

- The wallet structure.
Object

By neurons.me