isSessionEnabled
Check whether a session is enabled or not.
Usage
const isEnabled = await isSessionEnabled({
  client,
  account,
  permissionId: '0xPermissionId',
})Parameters
permissionId
- Type: Hex(opens in a new tab)
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
- Type: Account | Address
The account object or simply the account address.
Returns
isEnabled
- Type: Promise<boolean>
True if the session is enabled and false otherwise.