Install a module
Installs a ERC-7579 module to the smart account.
import { getSmartSessionsValidator } from "@rhinestone/module-sdk";
const sessionKeyValidator = getSmartSessionsValidator({})
const userOpHash = await smartAccountClient.installModule({
type: smartSessions.type,
address: smartSessions.address,
context: smartSessions.initData,
})
const receipt = await smartAccountClient.waitForUserOperationReceipt({ hash: userOpHash })
Last updated