Skip to content

ViemTevmOptimisticExtension

ViemTevmOptimisticExtension: () => ViemTevmOptimisticClientDecorator

Returns

ViemTevmOptimisticClientDecorator

Example

import { createClient, parseEth } from 'viem'
import { tevmViemExtension } from '@tevm/viem-extension'
const client = createClient('https://mainnet.optimism.io')
.extend(tevmViemExtension())
await client.tevm.account({
address: `0x${'12'.repeat(20)}`,
balance: parseEth('420'),
})

See

@tevm/server for documentation on creating a tevm backend

Defined in

extensions/viem/src/ViemTevmOptimisticExtension.ts:22