Type Alias: ForeignCallHandler()
type ForeignCallHandler = (name, inputs) => Promise<ForeignCallOutput[]>;
A callback which performs an foreign call and returns the response.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| name | string | The identifier for the type of foreign call being performed. | 
| inputs | ForeignCallInput[] | An array of hex encoded inputs to the foreign call. | 
Returns
Promise<ForeignCallOutput[]>
outputs - An array of hex encoded outputs containing the results of the foreign call.