toSessionClient function creates a new SessionClient instance that can submit transactions and perform actions (e.g. writeContract) from the Abstract Global wallet signed by a session key.
If a transaction violates any of the session key’s policies, it will be rejected.
Usage
Parameters
The account that will be used to sign transactions. This must match the signer address specified in the session configuration.
The session configuration created by createSession.