Account Guardian
Last updated
Was this helpful?
Last updated
Was this helpful?
The Account Guardian contract allows smart wallet account holders to manage their account guardians.
Use the AccountGuardian
contract address directly on the client side to interact with the deployed contract.
Add guardians for your smart wallet.
Can only be called by the smart wallet account, AccountLock and AccountRecovery.
Params:
guardian
the verified guardian address being added as an account guardian.
A user will be able to remove allotted guardian(s) from their smart-wallet guardian list. The address should be a registered guardian for the account.
Can only be called by the smart wallet account, AccountLock and AccountRecovery.
Params:
guardian
address of the guardian the user wishes to remove.
Returns a list of all added account guardians for the senderโs smart wallet account.
Can only be called by the smart wallet account, AccountLock and AccountRecovery.
Returns
address[]
List of account guardians of the senderโs smart wallet.
Returns a boolean value indicating if the guardian is the senderโs guardian or not.
Can only be called by the smart wallet account, AccountLock and AccountRecovery.
Params:
guardian
guardian to be checked for
Returns:
bool
Bool flag indicating if the guardian is guarding the account
This will return the number of guardians allotted for a smart wallet account. Will be used when creating shards of the account's private key.
Returns:
uint256
No. of allotted account guardians