Delegation Toolkit

Hello
Gator
🐊

Integrate delegation into your dapp in minutes

Hello World Gator - Quickstart

This example demonstrates how to get started with the Delegation Toolkit. See the accompanying documentation.

Delegator Account

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.

Delegate Account

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.

Delegation

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.

Execute

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.

Examples


Made with ❤️ by the Delegator Team