ModuleSDK
Accounts
encodeModuleInstallationData

encodeModuleInstallationData

Encodes the initData for a module installation.

Usage

const initData = encodeModuleInstallationData({
  account: getAccount({
    address: safeAccount.address,
    type: 'safe',
  }),
  module: getDeadmanSwitch({
    account,
    client,
    nominee: nominee.address,
    timeout: 1,
    moduleType: 'validator',
  }),
})

Parameters

account

The account object.

module

The module object.

Returns

The encoded module installation data.