Abstract class representing a generic Aptos account.

This class serves as a single entry point for account generation, allowing accounts to be created either through Account.generate() or Account.fromDerivationPath. Although it is defined as an abstract class, it should be treated as an interface and enforced using the implements keyword.

Note: Generating an account instance does not create the account on-chain.

Hierarchy (view full)

Implementation - Account (On-Chain Model)

accountAddress: AccountAddress

Account address associated with the account

Public key associated with the account

sign: ((message: HexInput) => AbstractSignature)

Sign the given message using the available signing capabilities.

Type declaration

signingScheme: SingleKey = SigningScheme.SingleKey

Signing scheme used to sign transactions

  • Verify the given message and signature with the public key. This function helps ensure the integrity and authenticity of a message by validating its signature.

    Parameters

    Returns boolean

    A boolean indicating whether the signature is valid.

Constructors

Methods

  • Update the signer function for the account. This can be done after asynchronous operations are complete to update the context of the signer function.

    Parameters

    Returns void

Properties

authenticationFunction: string
MMNEPVFCICPMFPCPTTAAATR