@fuel-ts/account .PrivateKeyVault
• new PrivateKeyVault(options?
): PrivateKeyVault
If privateKey vault is initialized with a secretKey, it creates one account with the fallowing secret
Name | Type |
---|---|
options | PkVaultOptions |
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:23
• Private
#privateKeys: string
[] = []
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:17
▪ Static
Readonly
type: "privateKey"
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:15
▸ addAccount(): Object
Object
Name | Type |
---|---|
address | AbstractAddress |
publicKey | string |
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:49
▸ exportAccount(address
): string
Name | Type |
---|---|
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
Name | Type |
---|---|
privateKey | string |
Object
Name | Type |
---|---|
address | AbstractAddress |
publicKey | string |
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:37
▸ getWallet(address
): WalletUnlocked
Name | Type |
---|---|
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