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
@@ -55,6 +71,8 @@ The `dappOrigin` is the origin of your dapp, used to verify where the user is co
55
71
The `explicitSessionParams` object allows your dapp to request specific permissions from the user upon connection.
56
72
These permissions can authorize your dapp to perform certain actions on the user's behalf for a defined period, creating a more seamless user experience with no transaction prompts or allowing automations.
57
73
74
+
`nativeTokenSpending` is optional. If omitted, the session will default to a native token `valueLimit` of `0`.
75
+
58
76
For example, let's create an explicit session that allows your dapp to `deposit 100 USDC into the AAVE V3 pool on Arbitrum, on behalf of the user for the next 24 hours`
@@ -227,6 +261,8 @@ The `dappOrigin` is the origin of your dapp, used to verify where the user is co
227
261
The `explicitSessionParams` object allows your dapp to request specific permissions from the user upon connection.
228
262
These permissions can authorize your dapp to perform certain actions on the user's behalf for a defined period, creating a more seamless user experience with no transaction prompts.
229
263
264
+
`nativeTokenSpending` is optional. If omitted, the session will default to a native token `valueLimit` of `0`.
265
+
230
266
For example, let's create an explicit session that allows your dapp to `deposit 100 USDC into the AAVE V3 pool on Arbitrum, on behalf of the user for the next 24 hours`
231
267
232
268
```typescript [config.ts]
@@ -390,5 +426,3 @@ The user will be prompted to approve the permissions when connecting.
@@ -161,7 +162,7 @@ Function to confirm the selected fee option.
161
162
| Parameter | Type | Description |
162
163
| --------- | ---- | ----------- |
163
164
| `id` | `string` | The fee confirmation ID |
164
-
| `feeTokenAddress` | `string` | The address of the token to use for fee payment (use empty string for native token) |
165
+
| `feeTokenAddress` | `string` | The address of the token to use for fee payment (use `zeroAddress` for native token) |
165
166
166
167
#### rejectPendingFeeOption
167
168
@@ -186,4 +187,4 @@ Key features:
186
187
187
188
The hook integrates with the Sequence V3 connector to intercept fee confirmation requests and presents a user interface to allow selection of the fee token. It uses shared state management to ensure consistent behavior across multiple instances of the hook.
188
189
189
-
For a detailed guide on how to use the hook, see the [Pay gas in ERC20](/sdk/web/wallet-sdk/embedded/guides/pay-gas-in-erc20) guide.
190
+
For a detailed guide on how to use the hook, see the [Pay gas in ERC20](/sdk/web/wallet-sdk/embedded/guides/pay-gas-in-erc20) guide.
0 commit comments