isClosedPolicySubscriber(Retrieves whether an address is a possible subscriber to the closed policy.config,rulesEngineComponentContract,policyId,subscriber):Promise<boolean>
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