Tooling
Module SDK
Accounts API
isModuleInstalled

⚠️ 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)

isModuleInstalled

Check if a module is installed in the account. Note that this currently only works for deployed accounts.

Usage

const _isModuleInstalled = await isModuleInstalled({
  client,
  account,
  module,
})

Parameters

client

  • Type: PublicClient

The rpc client to use for the chain you want to check the module on.

account

The account object.

module

The module object.

Returns

isModuleInstalled

  • Type: Promise<boolean>

Whether the module is installed on the account.