ModuleSDK
Accounts
getInstalledModules

getInstalledModules

Get all the installed modules on an account.

Usage

const modules = await getInstalledModules({
  client,
  account,
});

Parameters

client

  • Type: PublicClient

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

account

The account object.

moduleTypes (optional)

The array of module types to filter the modules by.

Returns

  • Type: Promise<Address[]>

An array of all the installed modules on the account.