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

# setPolicies

> **setPolicies**(`config`, `rulesEnginePolicyContract`, `policyIds`, `contractAddressForPolicy`): `Promise`\<`void`>

Sets the policies appled to a specific contract address.

## Parameters

| Parameter                           | Type                      | Description                                                                 |
| ----------------------------------- | ------------------------- | --------------------------------------------------------------------------- |
| `config`                            | `Config`                  | The configuration object containing network and wallet information.         |
| `rulesEnginePolicyContract`         | `object`                  | The contract instance for interacting with the Rules Engine Policy.         |
| `rulesEnginePolicyContract.abi`     | (`object` \| `object`)\[] | -                                                                           |
| `rulesEnginePolicyContract.address` | \`0x\$\{string}\`         | -                                                                           |
| `policyIds`                         | \[`number`]               | The list of IDs of all of the policies that will be applied to the contract |
| `contractAddressForPolicy`          | \`0x\$\{string}\`         | The address of the contract to which the policy will be applied.            |

## Returns

`Promise`\<`void`>

## Defined in

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