getTracker(
config
,rulesEngineComponentContract
,policyId
,trackerId
):Promise
<TrackerOnChain
>
Retrieves a tracker from the Rules Engine Component Contract based on the provided policy ID and tracker ID.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEngineComponentContract | object | The contract instance containing the address and ABI for interaction. |
rulesEngineComponentContract.abi | (object | object | object )[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The ID of the policy associated with the tracker. |
trackerId | number | The ID of the tracker to retrieve. |
Promise
<TrackerOnChain
>
A promise that resolves to the tracker result if successful, or null
if an error occurs.
Will log an error to the console if the contract interaction fails.
getTracker(
config
,rulesEngineComponentContract
,policyId
,trackerId
):Promise
<TrackerOnChain
>
Retrieves a tracker from the Rules Engine Component Contract based on the provided policy ID and tracker ID.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEngineComponentContract | object | The contract instance containing the address and ABI for interaction. |
rulesEngineComponentContract.abi | (object | object | object )[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The ID of the policy associated with the tracker. |
trackerId | number | The ID of the tracker to retrieve. |
Promise
<TrackerOnChain
>
A promise that resolves to the tracker result if successful, or null
if an error occurs.
Will log an error to the console if the contract interaction fails.