Wallet Class
Class
Used to generate a client wallet by Mnemonic.
Name | Type | Description |
---|---|---|
| string | The name of the wallet. |
| string | The key of the wallet which is the encrypted password for the wallet. |
| string | Optional prefix for the wallet. |
Methods
fromMnemonic
Generates a new wallet from a given mnemonic.
Name | Type | Description |
---|---|---|
| string | The name to assign for the wallet. |
| string | The mnemonic used to generate the wallet address. |
| string | The passphrase for the wallet. |
| string | The bech32 address prefix. |
getWallet
Gets the wallet associated with the provided passphrase.
Name | Type | Description |
---|---|---|
| string | The passphrase of the wallet to get. |
getAccounts
Get all accounts associated with the wallet.
Name | Type | Description |
---|---|---|
| string | The passphrase of the wallet to get accounts for. |
getAddress
Provides the first OfflineSigner object associated with the wallet. Can be used for signing messages.
Name | Type | Description |
---|---|---|
| string | The passphrase of the wallet to get the address for. |
Last updated