ScriptHandler
ScriptHandler: <
TAbi
,TFunctionName
>(params
) =>Promise
<ScriptResult
<TAbi
,TFunctionName
>>
Examples
Contract handlers provide a more ergonomic way to execute scripts
Type Parameters
• TAbi extends Abi
| readonly unknown
[] = Abi
• TFunctionName extends ContractFunctionName
<TAbi
> = ContractFunctionName
<TAbi
>
Parameters
• params: ScriptParams
<TAbi
, TFunctionName
>
Returns
Promise
<ScriptResult
<TAbi
, TFunctionName
>>