Class: MnemonicVault
@fuel-ts/account.MnemonicVault
Implements
Constructors
constructor
• new MnemonicVault(options
): MnemonicVault
Parameters
Name | Type |
---|---|
options | MnemonicVaultOptions |
Returns
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:24
Properties
#secret
• Private
Readonly
#secret: string
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:18
numberOfAccounts
• numberOfAccounts: number
= 0
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:22
pathKey
• pathKey: string
= '{}'
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:20
rootPath
• rootPath: string
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:21
type
▪ Static
Readonly
type: "mnemonic"
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:17
Methods
addAccount
▸ addAccount(): Object
Returns
Object
Name | Type |
---|---|
address | AbstractAddress |
publicKey | string |
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:63
exportAccount
▸ exportAccount(address
): string
Parameters
Name | Type |
---|---|
address | string | AbstractAddress |
Returns
string
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:73
getAccounts
▸ getAccounts(): { address
: AbstractAddress
= wallet.address; publicKey
: string
= wallet.publicKey }[]
Returns
{ address
: AbstractAddress
= wallet.address; publicKey
: string
= wallet.publicKey }[]
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:46
getDerivePath
▸ getDerivePath(index
): string
Parameters
Name | Type |
---|---|
index | number |
Returns
string
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:31
getWallet
▸ getWallet(address
): WalletUnlocked
Parameters
Name | Type |
---|---|
address | string | AbstractAddress |
Returns
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:91
serialize
▸ serialize(): MnemonicVaultOptions
Returns
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:38