🔧 Complete Configuration Example
Here is a complete example of how to configure your app to request approve and transfer permissions, using the Web SDK.📋 Configuration Parameters
Parameter | Type | Description |
---|---|---|
chainId | ChainId | The blockchain where permissions apply |
valueLimit | bigint | Native currency spending limit (use 0n for token-only permissions) |
deadline | bigint | Session expiration timestamp |
permissions | Array | List of specific permission rules |
🎯 Permission Types
Approve Permission
Transfer Permission
✨ Result
With this configuration:- One-time approval when user connects
- Zero pop-ups for subsequent approve/transfer actions
- Automatic expiration after 24 hours or spending limit reached
- Secure boundaries enforced on-chain