Tooling
Module SDK
Modules
isSessionEnabled

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

isSessionEnabled

Check whether a session is enabled or not.

Usage

const isEnabled = await isSessionEnabled({
  client,
  account,
  permissionId: '0xPermissionId',
})

Parameters

permissionId

The permission ID of the session to check if enabled.

client

  • Type: PublicClient

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

account

The account object or simply the account address.

Returns

isEnabled

  • Type: Promise<boolean>

True if the session is enabled and false otherwise.