isModuleInstalled

Checks if an ERC-7579 module is installed on the smart account.

const ownableExecutorModule = "0x4Fd8d57b94966982B62e9588C27B4171B55E8354"
const moduleData = encodePacked(["address"], ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"])

const isInstalled = await smartAccountClient.isModuleInstalled({
    type: "executor",
    address: ownableExecutorModule,
    context: moduleData,
})

Last updated