expiry parameter.
Extended Session Expiry - what does it mean?
When an app sends a request through WalletConnect (for example, a signature request), it stays “active” until the expiry time is reached. If the wallet does not respond before the expiry, the request automatically fails with a timeout. By default, the expiry is short, i.e., 5 minutes. Extending the session expiry time allows the wallet and app to keep the request open longer, up to 7 days. This is useful for cases like off-hours approvals, delayed custody flows, or multi-party signing.What do apps need to do?
An app must:- Keep track of outstanding requests and handle delayed responses.
- Have a UI that tolerates waiting for a response as long as the expiry is configured.
Limits
- Minimum: 300 seconds (5 min)
- Maximum: 604,800 seconds (7 days)
How can I extend the session request expiry as an app?
Developers can define how long a WalletConnect session request remains active by using theexpiry parameter in the session request payload.
Parameter
expiry: Optional field to set session expiry time. Must be in seconds.
Implementation
Below are the examples of how to implement theexpiry parameter in the session request payload for different providers.