parseForeignCallDefinition
parseForeignCallDefinition(
syntax
):ForeignCallDefinition
Parses the foreign call definition and validates its structure.
Parameters
Parameter | Type | Description |
---|---|---|
syntax | foreignCallJSON | The JSON representation of the foreign call definition. |
Returns
An object containing the foreign call’s name, address, signature, return type, parameter types, and encoded indices.
Throws
An error if the return type or parameter types are unsupported.