Class: PrivateKeyVault
@fuel-ts/account.PrivateKeyVault
Implements
Constructors
constructor
• new PrivateKeyVault(options?
): PrivateKeyVault
If privateKey vault is initialized with a secretKey, it creates one account with the fallowing secret
Parameters
Name | Type |
---|---|
options | PkVaultOptions |
Returns
Defined in
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:23
Properties
#privateKeys
• Private
#privateKeys: string
[] = []
Defined in
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:17
type
▪ Static
Readonly
type: "privateKey"
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:15
Methods
addAccount
▸ addAccount(): Object
Returns
Object
Name | Type |
---|---|
address | AbstractAddress |
publicKey | string |
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:49
exportAccount
▸ exportAccount(address
): string
Parameters
Name | Type |
---|---|
address | string | AbstractAddress |
Returns
string
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:57
getAccounts
▸ getAccounts(): WalletManagerAccount
[]
Returns
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:45
getPublicAccount
▸ getPublicAccount(privateKey
): Object
Parameters
Name | Type |
---|---|
privateKey | string |
Returns
Object
Name | Type |
---|---|
address | AbstractAddress |
publicKey | string |
Defined in
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:37
getWallet
▸ getWallet(address
): WalletUnlocked
Parameters
Name | Type |
---|---|
address | string | AbstractAddress |
Returns
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:73
serialize
▸ serialize(): PkVaultOptions
Returns
Implementation of
Defined in
packages/account/src/wallet-manager/vaults/privatekey-vault.ts:31