> ## Documentation Index
> Fetch the complete documentation index at: https://thrackle.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# isClosedPolicySubscriber

> **isClosedPolicySubscriber**(`config`, `rulesEngineComponentContract`, `policyId`, `subscriber`): `Promise`\<`boolean`>

Retrieves whether an address is a possible subscriber to the closed policy.

## Parameters

| Parameter                              | Type                                  | Description                                                             |
| -------------------------------------- | ------------------------------------- | ----------------------------------------------------------------------- |
| `config`                               | `Config`                              | The configuration object containing network and wallet information.     |
| `rulesEngineComponentContract`         | `object`                              | The contract instance for interacting with the Rules Engine Components. |
| `rulesEngineComponentContract.abi`     | (`object` \| `object` \| `object`)\[] | -                                                                       |
| `rulesEngineComponentContract.address` | \`0x\$\{string}\`                     | -                                                                       |
| `policyId`                             | `number`                              | The ID of the policy to check.                                          |
| `subscriber`                           | \`0x\$\{string}\`                     | The address to check                                                    |

## Returns

`Promise`\<`boolean`>

array of all of the policy ids applied to the contract

## Defined in

[src/modules/policy.ts:756](https://github.com/forte-service-company-ltd/forte-rules-engine-sdk/blob/5aad4d7c3c8cc91280e4449c17ac8ea31219fbed/src/modules/policy.ts#L756)
