Creates new account instance. Constructor allows passing in an address, to handle account key rotation, where auth_key != public_key
Optional
privateKeyBytes: Uint8ArrayPrivate key from which account key pair will be generated. If not specified, new key pair is going to be created.
Optional
address: MaybeHexStringAccount address (e.g. 0xe8012714cd17606cee7188a2a365eef3fe760be598750678c8c5954eb548a591). If not specified, a new one will be generated from public key
Private
Readonly
accountAddress associated with the given account
Readonly
signingA private key and public key, associated with the given account
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
Authentication key for the associated account
Signs specified hexString
with account's private key
A signature HexString
A regular string or HexString to sign
Derives account address, public key and private key
AptosAccountObject instance.
An example of the returned AptosAccountObject object
{
address: "0xe8012714cd17606cee7188a2a365eef3fe760be598750678c8c5954eb548a591",
publicKeyHex: "0xf56d8524faf79fbc0f48c13aeed3b0ce5dd376b4db93b8130a107c0a5e04ba04",
privateKeyHex: `0x009c9f7c992a06cfafe916f125d8adb7a395fca243e264a8e56a4b3e6accf940
d2b11e9ece3049ce60e3c7b4a1c58aebfa9298e29a30a58a67f1998646135204`
}
Verifies the signature of the message with the public key of the account
a signed message
the signature of the message
Static
fromStatic
fromCreates new account with bip44 path and mnemonics,
AptosAccount
Static
getTakes source address and seeds and returns the resource account address
The resource account address
Address used to derive the resource account
The seed bytes
Static
isGenerated using TypeDoc
Class for creating and managing Aptos account