createTevmTransport
createTevmTransport(
options
):TevmTransport
<string
>
Creates a custom TEVM Transport for viem.
A Transport in viem is the intermediary layer responsible for executing outgoing RPC requests. This custom TEVM Transport integrates an in-memory Ethereum client, making it ideal for local-first applications, optimistic updates, and advanced TEVM functionalities like scripting.
Parameters
• options: TevmNodeOptions
<object
> = {}
Configuration options for the base client, similar to those used in memoryClient
or a low-level baseClient
.
Returns
TevmTransport
<string
>
A configured TEVM transport.
Example
See
- createClient
- Viem Client Docs
- Client Guide
- tevm JSON-RPC Guide
- EIP-1193 spec
- Ethereum jsonrpc docs
- CreateMemoryClient Docs - For a batteries-included client if not worried about tree shaking