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

# getForeignCallPermissionList

> **getForeignCallPermissionList**(`config`, `rulesEngineForeignCallContract`, `foreignCallAddress`, `functionSelector`): `Promise`\<\`0x\$\{string}\`\[]>

Retrieves the permission list for a permissioned foreign call.

## Parameters

| Parameter                                | Type                                  | Description                                                         |
| ---------------------------------------- | ------------------------------------- | ------------------------------------------------------------------- |
| `config`                                 | `Config`                              | The configuration object containing network and wallet information. |
| `rulesEngineForeignCallContract`         | `object`                              | An object representing the Rules Engine Component Contract,         |
| `rulesEngineForeignCallContract.abi`     | (`object` \| `object` \| `object`)\[] | -                                                                   |
| `rulesEngineForeignCallContract.address` | \`0x\$\{string}\`                     | -                                                                   |
| `foreignCallAddress`                     | \`0x\$\{string}\`                     | the address of the contract the foreign call belongs to.            |
| `functionSelector`                       | `string`                              | The selector for the specific foreign call                          |

## Returns

`Promise`\<\`0x\$\{string}\`\[]>

Array of addresses that make up the permission list

## Throws

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

## Defined in

[src/modules/foreign-calls.ts:519](https://github.com/forte-service-company-ltd/forte-rules-engine-sdk/blob/5aad4d7c3c8cc91280e4449c17ac8ea31219fbed/src/modules/foreign-calls.ts#L519)
