Create a new HD wallet.
Mnemonic of the wallet as an array of words.
Number of accounts to generate.
Initial index of the accounts to generate.
Derivation path of the wallet.
Optional
options: { Options for signing a transaction with gasPayer.
Optional
gasReadonly
accountsList of accounts in the wallet.
Readonly
countNumber of accounts to generate.
Readonly
derivationDerivation path of the wallet.
Optional
Readonly
gasOptions for signing a transaction with gasPayer.
Readonly
initialInitial index of the accounts to generate.
Readonly
mnemonicMnemonic of the wallet.
Get an account given an address or an index.
Optional
addressOrIndex: string | numberAddress or index of the account.
The account with the given address, or null if not found.
SYNC Version of getAccount()
Get an account given an address or an index.
Optional
addressOrIndex: string | numberAddress or index of the account.
The account with the given address, or null if not found.
Get the options for signing a transaction with gasPayer (if any).
The options for signing a transaction with gasPayer.
SYNC Version of getGasPayer()
Get the options for signing a transaction with gasPayer (if any).
The options for signing a transaction with gasPayer.
Get a signer into the internal wallet provider for the given address.
The parent provider of the Internal Wallet.
Optional
addressOrIndex: string | numberAddress of the account.
The signer for the given address.
SYNC Version of getSigner()
Get a signer into the internal wallet provider for the given address.
The parent provider of the Internal Wallet.
Optional
addressOrIndex: string | numberAddress or index of the account.
The signer for the given address.
Provider internal Base wallet class.
This is the most basic wallet implementation we can have: