Abstract
Readonly
Abstract
accountAccount address associated with the account
Readonly
Abstract
publicPublic key associated with the account
Abstract
signingSigning scheme used to sign transactions
Abstract
signAbstract
signSign the given transaction using the available signing capabilities.
the transaction to be signed
Signature
Abstract
signSign a transaction using the available signing capabilities.
the raw transaction
the AccountAuthenticator containing the signature of the transaction, together with the account's public key
Abstract
signSign a message using the available signing capabilities.
the signing message, as binary input
the AccountAuthenticator containing the signature, together with the account's public key
Verify the given message and signature with the public key.
Static
authPublicKey - public key of the account
The authentication key for the associated account
use publicKey.authKey()
instead.
This key enables account owners to rotate their private key(s)
associated with the account without changing the address that hosts their account.
See here for more info: https://aptos.dev/concepts/accounts#single-signer-authentication
Static
fromDerives an account with bip44 path and mnemonics
Static
fromCreates an account from the provided private key.
Static
fromStatic
generateDerives an account from a randomly generated private key.
Optional
args: GenerateEd25519AccountArgsAn account compatible with the provided signature scheme
Interface for a generic Aptos account.
The interface is defined as abstract class to provide a single entrypoint for account generation, either through
Account.generate()
orAccount.fromDerivationPath
. Despite this being an abstract class, it should be treated as an interface and enforced using theimplements
keyword.Note: Generating an account instance does not create the account on-chain.