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
Derives account address, public key and private key
AptosAccountObject instance.
{
address: "0xe8012714cd17606cee7188a2a365eef3fe760be598750678c8c5954eb548a591",
publicKeyHex: "0xf56d8524faf79fbc0f48c13aeed3b0ce5dd376b4db93b8130a107c0a5e04ba04",
privateKeyHex: `0x009c9f7c992a06cfafe916f125d8adb7a395fca243e264a8e56a4b3e6accf940
d2b11e9ece3049ce60e3c7b4a1c58aebfa9298e29a30a58a67f1998646135204`
}
Static
fromStatic
fromCreates new account with bip44 path and mnemonics,
AptosAccount
Static
getTakes creator address and collection name and returns the collection id hash.
Collection id hash are generated as sha256 hash of (creator_address::collection_name
)
Collection creator address
The collection name
The collection id hash
Static
getStatic
is
Class for creating and managing Aptos account