ContractHandler
ContractHandler: <
TAbi
,TFunctionName
>(action
) =>Promise
<ContractResult
<TAbi
,TFunctionName
>>
Handler for contract tevm procedure
It’s API resuses the viem contractRead
/contractWrite
API to encode abi, functionName, and args
Type parameters
• TAbi extends Abi
| readonly unknown
[] = Abi
• TFunctionName extends ContractFunctionName
<TAbi
> = ContractFunctionName
<TAbi
>
Parameters
• action: ContractParams
<TAbi
, TFunctionName
>
Returns
Promise
<ContractResult
<TAbi
, TFunctionName
>>
Source
packages/actions/src/Contract/ContractHandlerType.ts:12