Skip to content

ViemTevmOptimisticClient

ViemTevmOptimisticClient<TChain, TAccount>: object

Type Parameters

TChain extends Chain | undefined = Chain

TAccount extends Account | undefined = Account | undefined

Type declaration

tevm

tevm: Omit<TevmClient, "request"> & object

Type declaration

writeContractOptimistic()
Type Parameters

TAbi extends Abi | readonly unknown[] = Abi

TFunctionName extends string = ContractFunctionName<TAbi>

TArgs extends unknown = ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName>

TChainOverride extends undefined | Chain = undefined | Chain

Parameters

action: WriteContractParameters<TAbi, TFunctionName, TArgs, TChain, TAccount, TChainOverride>

Returns

AsyncGenerator<OptimisticResult<TAbi, TFunctionName, TChain>, any, any>

Defined in

extensions/viem/src/ViemTevmOptimisticClient.ts:11