@fuel-ts/account v0.94.5 • Docs
Class: MnemonicVault
Implements
Constructors
new MnemonicVault()
new MnemonicVault(
options
):MnemonicVault
Parameters
• options: MnemonicVaultOptions
Returns
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:24
Properties
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
readonly
static
type:"mnemonic"
='mnemonic'
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:17
Methods
addAccount()
addAccount():
object
Returns
object
address
address:
AbstractAddress
=wallet.address
publicKey
publicKey:
string
=wallet.publicKey
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:63
exportAccount()
exportAccount(
address
):string
Parameters
• address: string
| AbstractAddress
Returns
string
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:73
getAccounts()
getAccounts():
object
[]
Returns
object
[]
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:46
getDerivePath()
getDerivePath(
index
):string
Parameters
• index: number
Returns
string
Defined in
packages/account/src/wallet-manager/vaults/mnemonic-vault.ts:31
getWallet()
getWallet(
address
):WalletUnlocked
Parameters
• 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