Skip to main content
getForeignCall(config, rulesEngineForeignCallContract, policyId, foreignCallId, blockParams?): Promise<Maybe<ForeignCallOnChain>>
Defined in: src/modules/foreign-calls.ts:402 Retrieves the result of a foreign call from the rules engine component contract.

Parameters

Returns

Promise<Maybe<ForeignCallOnChain>> A promise that resolves to the result of the foreign call, or null if an error occurs.

Throws

Will log an error to the console if the contract interaction fails.