Skip to content

OptimisticResult

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

Defined in

extensions/viem/src/OptimisticResult.ts:17