getAllForeignCalls
getAllForeignCalls(
config
,rulesEngineComponentContract
,policyId
):Promise
<null
|any
[]>
Retrieves all foreign calls associated with a specific policy ID from the Rules Engine Component Contract.
Parameters
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEngineComponentContract | object | An object representing the Rules Engine Component Contract, |
rulesEngineComponentContract.abi | (object | object | object )[] | - |
rulesEngineComponentContract.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
<null
| any
[]>
A promise that resolves to an array of foreign calls if successful, or null
if an error occurs.
Throws
Will log an error to the console if the operation fails.