> ## 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.

# getAllTrackers

> **getAllTrackers**(`config`, `rulesEngineComponentContract`, `policyId`): `Promise`\<[`TrackerOnChain`](../../types/type-aliases/TrackerOnChain)\[]>

Retrieves all trackers associated with a specific policy ID from the Rules Engine Component Contract.

## Parameters

| Parameter                              | Type                                  | Description                                                                                                |
| -------------------------------------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `config`                               | `Config`                              | The configuration object containing network and wallet information.                                        |
| `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. |

## Returns

`Promise`\<[`TrackerOnChain`](../../types/type-aliases/TrackerOnChain)\[]>

A promise that resolves to an array of trackers if successful, or `null` if an error occurs.

## Throws

Will log an error to the console if the operation fails.

## Defined in

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