installModule
function. This function will install the module on the smart account and execute the module’s onInstall
function. So, to be able to call this function, you will need to have the module’s address, the module type id and the initData. This can be done most easily using the ModuleSDK.
First, install the ModuleSDK:
module
, initData
and type
. You can then use this object to install the module on the smart account.