Skip to main content

Manage account recovery

The MetaMask Delegation Toolkit enables flexible account recovery mechanisms. This means you can designate trusted entities or accounts to help recover your account if you lose access.

Specifically, you can create a delegation that allows another account or dapp (the delegate) to update the signers on your delegator account. This delegation is highly limited in scope, permitting the delegate to call only the updateSigners function.

The following is an example of what that would look like:

Delegation {
delegate: <address of recoverer>
delegator: <address of delegator account>
...
caveats: [
// Method and target caveat enforcers to restrict calls to only `updateSigners()` on the
// specific smart contract account.
]
...
}