This example demonstrates how to get started with the Delegation Toolkit. See the accompanying documentation.
The MetaMask smart contract account that grants authority. Initially this will be counterfactual (not deployed on-chain), and will be deployed in the same user operation, just in time for redeeming the delegation.
The MetaMask smart contract account that receives the delegation. Initially this will be counterfactual (not deployed on-chain), until it is deployed by submitting a user operation.
The delegator creates and signs a delegation, granting specific authority to the delegate account. In this case, the delegation allows a transfer of 0 ether to the zero address.
The redeemer submits a user operation that executes the action allowed by the delegation (in this case, transfer nothing to no one) on behalf of the delegator. If the delegator is counterfactual, it will be deployed as a separate Call in the same user operation.
Made with ❤️ by the Delegator Team