Private
contractRest
...args: [accountAdmin: string, extraData?: BytesLike]Create a account for an admin. The admin will have complete authority over the account.
const tx = await contract.accountFactory.createAccount(admin, extraData);
const receipt = tx.receipt();
const accountAddress = tx.address;
AccountFactory
Rest
...args: [accountAdmin: string, extraData?: BytesLike]Get all accounts on which the given signer has authority
The account address.
all accounts on which the given signer has authority.
const allAccounts = await contract.accountFactory.getAssociatedAccounts(admin);
AccountFactory
Check if a account has been deployed for the given admin
The admin of the account.
Optional
extraData: BytesLike(Optional) Extra data to be passed to the account on creation.
whether the account has been deployed for the given admin.
Get the deterministic address of the account that will be created
The admin of the account.
Optional
extraData: BytesLike(Optional) Extra data to be passed to the account on creation.
the deterministic address of the account that will be created for the given admin.
const accountAddress = await contract.accountFactory.predictAccountAddress(admin);
AccountFactory
Generated using TypeDoc
Create a account