PrivateKeyVault

Icon LinkClass: PrivateKeyVault

@fuel-ts/account .PrivateKeyVault

Icon LinkImplements

Icon LinkConstructors

Icon Linkconstructor

new PrivateKeyVault(options?): PrivateKeyVault

If privateKey vault is initialized with a secretKey, it creates one account with the fallowing secret

Icon LinkParameters

NameType
optionsPkVaultOptions

Icon LinkReturns

PrivateKeyVault

Icon LinkDefined in

packages/account/src/wallet-manager/vaults/privatekey-vault.ts:23 Icon Link

Icon LinkProperties

Icon Link#privateKeys

Private #privateKeys: string[] = []

Icon LinkDefined in

packages/account/src/wallet-manager/vaults/privatekey-vault.ts:17 Icon Link


Icon Linktype

Static Readonly type: "privateKey"

Icon LinkImplementation of

Vault .type

Icon LinkDefined in

packages/account/src/wallet-manager/vaults/privatekey-vault.ts:15 Icon Link

Icon LinkMethods

Icon LinkaddAccount

addAccount(): Object

Icon LinkReturns

Object

NameType
addressAbstractAddress
publicKeystring

Icon LinkImplementation of

Vault .addAccount

Icon LinkDefined in

packages/account/src/wallet-manager/vaults/privatekey-vault.ts:49 Icon Link


Icon LinkexportAccount

exportAccount(address): string

Icon LinkParameters

NameType
addressstring | AbstractAddress

Icon LinkReturns

string

Icon LinkImplementation of

Vault .exportAccount

Icon LinkDefined in

packages/account/src/wallet-manager/vaults/privatekey-vault.ts:57 Icon Link


Icon LinkgetAccounts

getAccounts(): WalletManagerAccount []

Icon LinkReturns

WalletManagerAccount []

Icon LinkImplementation of

Vault .getAccounts

Icon LinkDefined in

packages/account/src/wallet-manager/vaults/privatekey-vault.ts:45 Icon Link


Icon LinkgetPublicAccount

getPublicAccount(privateKey): Object

Icon LinkParameters

NameType
privateKeystring

Icon LinkReturns

Object

NameType
addressAbstractAddress
publicKeystring

Icon LinkDefined in

packages/account/src/wallet-manager/vaults/privatekey-vault.ts:37 Icon Link


Icon LinkgetWallet

getWallet(address): WalletUnlocked

Icon LinkParameters

NameType
addressstring | AbstractAddress

Icon LinkReturns

WalletUnlocked

Icon LinkImplementation of

Vault .getWallet

Icon LinkDefined in

packages/account/src/wallet-manager/vaults/privatekey-vault.ts:73 Icon Link


Icon Linkserialize

serialize(): PkVaultOptions

Icon LinkReturns

PkVaultOptions

Icon LinkImplementation of

Vault .serialize

Icon LinkDefined in

packages/account/src/wallet-manager/vaults/privatekey-vault.ts:31 Icon Link