The number of accounts.
The list of accounts.
The Ain object.
The chain ID of the blockchain.
The default account.
Getter for the number of accounts in the wallet.
Converts an account into a v3 keystore and encrypts it with a password.
The address of the account.
The password.
The v3 keystore options.
The v3 keystore.
Adds an account from a v3 keystore.
The v3 keystore.
Optional
password: stringThe password of the v3 keystore.
The address of the newly added account.
Returns the "implied" address. If address is not given, it returns the defaultAccount. It throws an error if an address is not given and defaultAccount is not set, or the specified address is not added to the wallet.
Optional
inputAddress: stringFetches an account's nonce value, which is the current transaction count of the account.
The ferch options. It may contain a string 'address' value and a string 'from' value. The 'address' is the address of the account to get the nonce of, and the 'from' is the source of the data. It could be either the pending transaction pool ("pending") or the committed blocks ("committed"). The default value is "committed".
Optional
address?: stringOptional
from?: stringThe nonce value.
Fetches an account's timestamp value, which is the timestamp of the last transaction signed by the account with nonce = -2.
The ferch options. It may contain a string 'address' value and a string 'from' value. The 'address' is the address of the account to get the timestamp of, and the 'from' is the source of the data. It could be either the pending transaction pool ("pending") or the committed blocks ("committed"). The default value is "committed".
Optional
address?: stringOptional
from?: stringThe timestamp value.
Signs a string data with the private key of the given address. It will use the default account if an address is not provided.
The data to sign.
Optional
address: stringThe address of the account. It defaults to the default account of the wallet.
The signature.
Signs a transaction body with the private key of the given address. It will use the default account if an address is not provided.
The transaction body.
Optional
address: stringThe address of the account. It defaults to the adefault account of the wallet..
The signature.
Saves the accounts in the wallet as v3 keystores, locking them with the password.
The password.
The v3 keystore options.
The v3 keystores.
Sends a transfer transaction to the network.
The input parameters of the transaction.
Optional
from?: stringOptional
gas_Optional
nonce?: numberThe dryrun option.
The return value of the blockchain API.
Verifies if the signature is valid and was signed by the address.
The data used in the signing.
The signature to verify.
The address to verify.
Optional
chainId: numberThe chain Id for test purposes only.
Static
countStatic
from
A class for AI Network wallets.