getAllTrackers(
config
,rulesEngineComponentContract
,policyId
):Promise
<TrackerOnChain
[]>
Retrieves all trackers associated with a specific policy ID from the Rules Engine Component Contract.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEngineComponentContract | object | An object representing the Rules Engine Component Contract, |
rulesEngineComponentContract.abi | (object | object | object )[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The unique identifier of the policy for which trackers are to be retrieved. including its address and ABI. |
Promise
<TrackerOnChain
[]>
A promise that resolves to an array of trackers if successful, or null
if an error occurs.
Will log an error to the console if the operation fails.
getAllTrackers(
config
,rulesEngineComponentContract
,policyId
):Promise
<TrackerOnChain
[]>
Retrieves all trackers associated with a specific policy ID from the Rules Engine Component Contract.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEngineComponentContract | object | An object representing the Rules Engine Component Contract, |
rulesEngineComponentContract.abi | (object | object | object )[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The unique identifier of the policy for which trackers are to be retrieved. including its address and ABI. |
Promise
<TrackerOnChain
[]>
A promise that resolves to an array of trackers if successful, or null
if an error occurs.
Will log an error to the console if the operation fails.