The parameters for creating the Smart Sessions module.
A Module object representing the created Smart Sessions module.
const smartSessionsModule = toSmartSessionsValidator({
account: mySmartAccount,
signer: mySigner,
moduleData: {
permissionId: '0x1234...',
mode: SmartSessionMode.USE,
enableSessionData: '0x5678...'
}
});
Creates a Smart Sessions module for a modular smart account.
This function sets up a Smart Sessions module with the specified parameters, including session mode, permission ID, and session data.