createSessionClient
Function to create a new SessionClient without an existing AbstractClient.
The createSessionClient
function creates a new SessionClient
instance directly, without requiring an existing AbstractClient.
If you have an existing AbstractClient, use the toSessionClient method instead.
Usage
Parameters
The Abstract Global Wallet address or Account object that the session key will act on behalf of.
The chain configuration object that supports EIP-712.
The session key account that will be used to sign transactions. Must match the signer address in the session configuration.
The session configuration created by createSession.
The transport configuration for connecting to the network. Defaults to HTTP if not provided.
Returns
A new SessionClient instance that uses the session key for signing transactions. All transactions will be validated against the session’s policies.
Was this page helpful?