Tooling
Module SDK
Accounts API
getInstalledModules

⚠️ Deprecation Notice

ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.

Rhinestone SDK Documentation (opens in a new tab)

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.