Function to create an AbstractClient using a session key.
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.