Skip to main content
Version: v1.0.0-beta.6

Type Alias: ForeignCallHandler()

type ForeignCallHandler = (name, inputs) => Promise<ForeignCallOutput[]>;

A callback which performs an foreign call and returns the response.

Parameters

ParameterTypeDescription
namestringThe identifier for the type of foreign call being performed.
inputsForeignCallInput[]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.