Skip to content

Commit 0c47466

Browse files
committed
add configuration steps
1 parent c64e58f commit 0c47466

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/base-account/improve-ux/sub-accounts.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,23 @@ console.log('Owner added to Sub Account');
264264

265265
Auto Spend Permissions allows Sub Accounts to access funds from their parent Base Account when transaction balances are insufficient. This feature can also establish ongoing spend permissions, enabling future transactions to execute without user approval prompts, reducing friction in your app's transaction flow.
266266

267+
### Configuration
268+
269+
Auto Spend Permissions is only available in SDK version `2.0.2-canary.20250822164845` or later. This feature is **enabled by default** when using Sub Accounts.
270+
271+
To disable Auto Spend Permissions when using Sub Accounts, set `unstable_enableAutoSpendPermissions` to `false` in your SDK configuration:
272+
273+
```tsx
274+
const sdk = createBaseAccountSDK({
275+
appName: 'Base Account SDK Demo',
276+
appLogoUrl: 'https://base.org/logo.png',
277+
appChainIds: [base.id],
278+
subAccounts: {
279+
unstable_enableAutoSpendPermissions: false, // Disable auto spend permissions
280+
}
281+
});
282+
```
283+
267284
### How it works
268285

269286
**First-time transaction flow:**

0 commit comments

Comments
 (0)