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
Derives account address, public key and private key
SupraAccountObject instance.
{
address: "0xe8012714cd17606cee7188a2a365eef3fe760be598750678c8c5954eb548a591",
publicKeyHex: "0xf56d8524faf79fbc0f48c13aeed3b0ce5dd376b4db93b8130a107c0a5e04ba04",
privateKeyHex: `0x009c9f7c992a06cfafe916f125d8adb7a395fca243e264a8e56a4b3e6accf940
d2b11e9ece3049ce60e3c7b4a1c58aebfa9298e29a30a58a67f1998646135204`
}
Static fromCreates new account with bip44 path and mnemonics,
SupraAccount
Static fromStatic 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 Supra account