Skip to main content

Documentation Index

Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

removeClosedPolicySubscriber(config, rulesEngineComponentContract, policyId, subscriber): Promise<number>
Removes a subscriber from the closed policy.

Parameters

ParameterTypeDescription
configConfigThe configuration object containing network and wallet information.
rulesEngineComponentContractobjectThe contract instance for interacting with the Rules Engine Components.
rulesEngineComponentContract.abi(object | object | object)[]-
rulesEngineComponentContract.address`0x${string}`-
policyIdnumberThe ID of the policy to remove from.
subscriber`0x${string}`The address of the subscriber to remove.

Returns

Promise<number> 0 if successful, -1 if an error occurs.

Defined in

src/modules/policy.ts:823