sessionKeyPluginActions
Creates actions for managing session keys in a smart contract associated with a client, including adding, removing, rotating, and updating session key permissions.
Import
import { sessionKeyPluginActions } from "@account-kit/smart-contracts";
Usage
import { createModularAccountAlchemyClient, sessionKeyPluginActions } from "@account-kit/smart-contracts";
const client = createModularAccountAlchemyClient(...).extend(sessionKeyPluginActions);
Parameters
client
Client<TTransport, TChain, TAccount>
The client instance to use for managing session keys
Returns
SessionKeyPluginActions<TAccount>
An object containing methods for session key management and interaction with the smart contract