sendMethodCall
sendMethodCall<
ArgTypesOrMethod
,MethodReturnType
>(params
):ArgTypesOrMethod
extendsFunction
?ReturnType
<ArgTypesOrMethod
> :MethodReturnType
Sends ABI method call. The two type arguments in combination with the name argument are used to form the the method signature to ensure typesafety.
Type parameters
• ArgTypesOrMethod
Either the TEALScript method to call or the types of the method arguments
• MethodReturnType = void
The return type of the method. NOT needed if ArgTypesOrMethod is TEALScript method type
Parameters
• params: Expand
<MethodCallParams
<ArgTypesOrMethod
>>
The parameters of the method call
Returns
ArgTypesOrMethod
extends Function
? ReturnType
<ArgTypesOrMethod
> : MethodReturnType
The return value of the method call