getAllForeignCalls(Retrieves all foreign calls associated with a specific policy ID from the Rules Engine Component Contract.config,rulesEngineForeignCallContract,policyId):Promise<ForeignCallOnChain[]>
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}` | - | 
policyId | number | The ID of the policy for which foreign calls are to be retrieved. containing its address and ABI. | 
Returns
Promise<ForeignCallOnChain[]>
A promise that resolves to an array of foreign calls if successful, or null if an error occurs.