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.
Returns
A new AbstractClient instance that uses the session key for signing transactions. All transactions will be validated against the session’s policies.