Skip to main content
Version: v0.30.0

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.


Generated using typedoc-plugin-markdown and TypeDoc