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
Advanced Permissions support the automatic upgrading of a MetaMask user's account to a [MetaMask smart account](../../concepts/smart-accounts.md)
100
-
from MetaMask Flask version 13.9.0 onwards. If you're using a version below 13.9.0, you must ensure that the
100
+
from MetaMask Flask version 13.9.0 onwards. For earlier versions, you must ensure that the
101
101
user is upgraded to a smart account before requesting Advanced Permissions.
102
102
103
103
If the user has not yet been upgraded, you can handle the upgrade [programmatically](/wallet/how-to/send-transactions/send-batch-transactions/#about-atomic-batch-transactions) or ask the
@@ -141,9 +141,7 @@ if (code) {
141
141
### 5. Request Advanced Permissions
142
142
143
143
Request Advanced Permissions from the user. In this example, you'll request an
144
-
[ERC-20 periodic permission](use-permissions/erc20-token.md#erc-20-periodic-permission) using the Wallet Client's `requestExecutionPermissions` action.
145
-
146
-
See [`requestExecutionPermissions`](../../reference/advanced-permissions/wallet-client.md#requestexecutionpermissions) API reference to learn more.
144
+
[ERC-20 periodic permission](use-permissions/erc20-token.md#erc-20-periodic-permission) using the Wallet Client's [`requestExecutionPermissions`](../../reference/advanced-permissions/wallet-client.md#requestexecutionpermissions) action.
147
145
148
146
```typescript
149
147
import { sepoliaaschain } from"viem/chains";
@@ -238,7 +236,6 @@ To redeem the permissions, use the client action based on your session account t
238
236
A smart account uses the Bundler Client's [`sendUserOperationWithDelegation`](../../reference/advanced-permissions/bundler-client.md#senduseroperationwithdelegation) action,
239
237
and an EOA uses the Wallet Client's [`sendTransactionWithDelegation`](../../reference/advanced-permissions/wallet-client.md#sendtransactionwithdelegation) action:
240
238
241
-
See [`sendUserOperationWithDelegation`](../../reference/advanced-permissions/bundler-client.md#senduseroperationwithdelegation) and [`sendTransactionWithDelegation`](../../reference/advanced-permissions/wallet-client.md#sendtransactionwithdelegation) API reference to learn more.
Copy file name to clipboardExpand all lines: smart-accounts-kit/guides/advanced-permissions/use-permissions/erc20-token.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,11 @@ permissions for ERC-20 token transfers with time-based (periodic) or streaming c
19
19
20
20
## ERC-20 periodic permission
21
21
22
-
This permission type ensures a per-period limit for ERC-20 token transfers. At the start of each new period, the allowance resets.
22
+
The [ERC-20 periodic permission](../../../reference/advanced-permissions/permissions.md#erc-20-periodic-permission) ensures a per-period limit for ERC-20 token transfers. At the start of each new period, the allowance resets.
23
23
24
24
For example, a user signs an ERC-7715 permission that lets a dapp spend up to 10 USDC on their behalf each day. The dapp can transfer a total of
25
25
10 USDC per day; the limit resets at the beginning of the next day.
26
26
27
-
See [`erc20-token-periodic`](../../../reference/advanced-permissions/permissions.md#erc-20-periodic-permission) API reference to learn more.
This permission type ensures a linear streaming transfer limit for ERC-20 tokens. Token transfers are blocked until the
88
+
The [ERC-20 stream permission](../../../reference/advanced-permissions/permissions.md#erc-20-stream-permission) ensures a linear streaming transfer limit for ERC-20 tokens. Token transfers are blocked until the
91
89
defined start timestamp. At the start, a specified initial amount is released, after which tokens accrue linearly at the
92
90
configured rate, up to the maximum allowed amount.
93
91
94
92
For example, a user signs an ERC-7715 permission that allows a dapp to spend 0.1 USDC per second, starting with an initial amount
95
93
of 1 USDC, up to a maximum of 2 USDC.
96
94
97
-
See [`erc20-token-stream`](../../../reference/advanced-permissions/permissions.md#erc-20-stream-permission) API reference to learn more.
Copy file name to clipboardExpand all lines: smart-accounts-kit/guides/advanced-permissions/use-permissions/native-token.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,11 @@ permissions for native token transfers with time-based (periodic) or streaming c
19
19
20
20
## Native token periodic permission
21
21
22
-
This permission type ensures a per-period limit for native token transfers. At the start of each new period, the allowance resets.
22
+
The [native token periodic permission](../../../reference/advanced-permissions/permissions.md#native-token-periodic-permission) ensures a per-period limit for native token transfers. At the start of each new period, the allowance resets.
23
23
24
24
For example, a user signs an ERC-7715 permission that lets a dapp spend up to 0.001 ETH on their behalf each day. The dapp can transfer a total of
25
25
0.001 USDC per day; the limit resets at the beginning of the next day.
26
26
27
-
See [`native-token-periodic`](../../../reference/advanced-permissions/permissions.md#native-token-periodic-permission) API reference to learn more.
This permission type ensures a linear streaming transfer limit for native tokens. Token transfers are blocked until the
85
+
The [native token stream permission](../../../reference/advanced-permissions/permissions.md#native-token-stream-permission) type ensures a linear streaming transfer limit for native tokens. Token transfers are blocked until the
88
86
defined start timestamp. At the start, a specified initial amount is released, after which tokens accrue linearly at the
89
87
configured rate, up to the maximum allowed amount.
90
88
91
89
For example, a user signs an ERC-7715 permission that allows a dapp to spend 0.0001 ETH per second, starting with an initial amount
92
90
of 0.1 ETH, up to a maximum of 1 ETH.
93
91
94
-
See [`native-token-stream`](../../../reference/advanced-permissions/permissions.md#native-token-stream-permission) API reference to learn more.
0 commit comments