The AbstractClient includes a createSession method that can be used to create a session key for the connected Abstract Global Wallet.

Usage

Parameters

session
SessionConfig
required

Configuration for the session key, including:

Returns

transactionHash
Hash | undefined

The transaction hash if a transaction was needed to enable sessions.

session
SessionConfig

The created session configuration.