Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link
PrivateKeyVault

@fuel-ts/account v0.96.1 Docs


Icon LinkClass: PrivateKeyVault

Icon LinkImplements

Icon LinkConstructors

Icon Linknew PrivateKeyVault()

Icon InfoCircle

new PrivateKeyVault(options): PrivateKeyVault

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

Icon LinkParameters

options: PkVaultOptions = {}

Icon LinkReturns

PrivateKeyVault

Icon LinkDefined in

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

Icon LinkProperties

Icon Linktype

Icon InfoCircle

readonly static type: "privateKey" = '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()

Icon InfoCircle

addAccount(): object

Icon LinkReturns

object

Icon Linkaddress

Icon InfoCircle

address: AbstractAddress = wallet.address

Icon LinkpublicKey

Icon InfoCircle

publicKey: string = wallet.publicKey

Icon LinkImplementation of

Vault .addAccount

Icon LinkDefined in

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


Icon LinkexportAccount()

Icon InfoCircle

exportAccount(address): string

Icon LinkParameters

address: string | 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()

Icon InfoCircle

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()

Icon InfoCircle

getPublicAccount(privateKey): object

Icon LinkParameters

privateKey: string

Icon LinkReturns

object

Icon Linkaddress

Icon InfoCircle

address: AbstractAddress = wallet.address

Icon LinkpublicKey

Icon InfoCircle

publicKey: string = wallet.publicKey

Icon LinkDefined in

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


Icon LinkgetWallet()

Icon InfoCircle

getWallet(address): WalletUnlocked

Icon LinkParameters

address: string | 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()

Icon InfoCircle

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