Skip to main content
Use the useCreateSession hook to create a session key for the connected Abstract Global Wallet.

Import

Usage

Returns

createSession
function
Function to create a session key. Returns a Promise that resolves to the created session configuration.
createSessionAsync
function
Async mutation function to create a session key for async await syntax.
isPending
boolean
Whether the session creation is in progress.
isError
boolean
Whether the session creation resulted in an error.
error
Error | null
Error object if the session creation failed.