@fuel-ts/account v0.97.0 • Docs
Vault
<PkVaultOptions
> new PrivateKeyVault(
options
):PrivateKeyVault
If privateKey vault is initialized with a secretKey, it creates one account with the fallowing secret
• options: PkVaultOptions
= {}
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:23
readonly
static
type:"privateKey"
='privateKey'
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:15
addAccount():
object
object
address:
AbstractAddress
=wallet.address
publicKey:
string
=wallet.publicKey
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:49
exportAccount(
address
):string
• address: string
| AbstractAddress
string
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:57
getAccounts():
WalletManagerAccount
[]
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:45
getPublicAccount(
privateKey
):object
• privateKey: string
object
address:
AbstractAddress
=wallet.address
publicKey:
string
=wallet.publicKey
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:37
getWallet(
address
):WalletUnlocked
• address: string
| AbstractAddress
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:73
serialize():
PkVaultOptions
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:31