ModuleSDK
Accounts
encodeModuleUninstallationData

encodeModuleUninstallationData

Encodes the deInitData for a module uninstallation.

Usage

const deInitData = encodeModuleUninstallationData({
  client: getClient({
    rpcUrl: "https://sepolia.drpc.org",
  })
      account: getAccount({
        address: safeAccount.address,
        type: "safe",
      }),
      module: getDeadmanSwitch({
        account,
        client,
        nominee: nominee.address,
        timeout: 1,
        moduleType: "validator",
      }),});

Parameters

client

  • Type: PublicClient

The rpc client to use for the chain you want to get modules from.

account

The account object.

module

The module object.

Returns

The encoded module uninstallation data.