You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: delegation-toolkit/concepts/erc7715.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,11 +30,21 @@ The session account can be a smart account or an externally owned account (EOA).
30
30
31
31
The MetaMask user that the session account requests permissions from must be upgraded to a [MetaMask smart account](smart-accounts.md).
32
32
33
-
:::info ERC-7715 vs. delegations
33
+
## ERC-7715 vs. delegations
34
+
34
35
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.
35
39
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):
4.**Redeem permissions** - Once the permission is granted, the session account redeems the permission.
52
61
53
62
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