OptimisticResult
Experimental
OptimisticResult<
TAbi
,TFunctionName
,TChain
>:GenResult
<ContractResult
<TAbi
,TFunctionName
>,"OPTIMISTIC_RESULT"
> |GenError
<Error
,"OPTIMISTIC_RESULT"
> |GenResult
<WriteContractReturnType
,"HASH"
> |GenError
<WriteContractErrorType
,"HASH"
> |GenResult
<WaitForTransactionReceiptReturnType
<TChain
>,"RECEIPT"
> |GenError
<WriteContractErrorType
,"RECEIPT"
>
The result of an optimistic write
Type parameters
• TAbi extends Abi
| readonly unknown
[]
• TFunctionName extends ContractFunctionName
<TAbi
>
• TChain extends Chain
| undefined
Source
extensions/viem/src/OptimisticResult.ts:17