Skip to content

Commit 7e85442

Browse files
committed
edits and add image
1 parent 6f73317 commit 7e85442

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed
87.3 KB
Loading

delegation-toolkit/concepts/erc7715.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,21 @@ The session account can be a smart account or an externally owned account (EOA).
3030

3131
The MetaMask user that the session account requests permissions from must be upgraded to a [MetaMask smart account](smart-accounts.md).
3232

33-
:::info ERC-7715 vs. delegations
33+
## ERC-7715 vs. delegations
34+
3435
ERC-7715 expands on regular [delegations](delegation/index.md) by enabling permission sharing *via the MetaMask browser extension*.
36+
37+
With a regular delegation, the dapp constructs the delegation and requests the user to sign it.
38+
Delegated permissions are not human-readable, so it is up to the dapp to provide context for the user.
3539
Regular delegations cannot be signed through the MetaMask extension, because if a dapp requests a delegation without constraints, the whole wallet can be exposed to the dapp.
36-
In contrast, ERC-7715 requires a [permission type](#permission-types) which displays a readable confirmation for the MetaMask user.
37-
:::
40+
41+
In contrast, ERC-7715 enables dapps (and AI agents) to request permissions from a user directly via the MetaMask extension.
42+
ERC-7715 requires a permission configuration which displays a human-readable confirmation for the MetaMask user.
43+
For example, the following ERC-7715 permission request displays a rich UI including the start time, amount, and period duration for an [ERC-20 token periodic transfer](../guides/erc7715/use-permissions/erc20-token.md):
44+
45+
<p align="center">
46+
<img src={require("../assets/erc7715-request.png").default} alt="ERC-7715 request" width="450px" class="appScreen" />
47+
</p>
3848

3949
## ERC-7715 permissions lifecycle
4050

@@ -44,18 +54,9 @@ The ERC-7715 permissions lifecycle is as follows:
4454
It can be a [smart account](smart-accounts.md) or an externally owned account (EOA).
4555

4656
2. **Request permissions** - Request permissions from the user.
47-
MetaMask supports multiple ERC-7715 [permission types](#permission-types).
48-
49-
3. **Set up a Viem client** - Set up a Viem client (the client type depends on the session account type) to redeem permissions.
57+
The Delegation Toolkit supports [ERC-20 token permissions](../guides/erc7715/use-permissions/erc20-token.md) and
58+
[native token permissions](../guides/erc7715/use-permissions/native-token.md).
5059

5160
4. **Redeem permissions** - Once the permission is granted, the session account redeems the permission.
5261

5362
See [how to perform executions on a MetaMask user's behalf](../guides/erc7715/execute-on-metamask-user-behalf.md) to get started with the ERC-7715 lifecycle.
54-
55-
## Permission types
56-
57-
The Delegation Toolkit currently supports the following types of ERC-7715 permissions:
58-
59-
- **Native token permissions** - Define how dapps can use users' native tokens.
60-
61-
- **ERC-20 token permissions** - Define how dapps can use users' ERC-20 tokens.

0 commit comments

Comments
 (0)