Import
Usage
Return Type
The hook returns an object with the following properties:Properties
isLoading
boolean
A boolean indicating if the session request operation is in progress.
error
Error | null
An error object if the last operation failed, otherwise null
.
addExplicitSession
(chainId: ChainId, explicitSession: ExplicitSession) => Promise<void>
Function to create a new explicit session.
getExplicitSessions
() => Promise<Session[]>
Function to get all sessions for the connected wallet.
Notes
This hook provides functionality for managing explicit sessions in Sequence V3 wallet connections. Key features:- Create new explicit sessions with custom permissions and spending limits
- Retrieve all existing explicit sessions for the connected wallet
- Built-in error handling for common connection issues
- Loading states for better user experience
- Automatic session filtering to only show explicit sessions