ScriptHandler
ScriptHandler: <
TAbi
,TFunctionName
>(params
) =>Promise
<ScriptResult
<TAbi
,TFunctionName
>>
Executes scripts against the Tevm EVM. By default the script is sandboxed
and the state is reset after each execution unless the persist
option is set
to true.
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
>>
Source
packages/actions/src/Script/ScriptHandlerType.ts:31