Tevm clients guide
Tevm Clients
The interface to Tevm api is called TevmClient. This api provides a uniform API for interacting with Tevm whether interacting with a MemoryClient directly or remotely interacting via an HttpCLient. Tevm clients share the same actions based interface along with a request
method for handling JSON-RPC requests.
The following clients are available
- MemoryClient - An in memory instance of the EVM that can run in Node.js, bun or the browser
- HttpClient - A client that talks to a remote
MemoryClient
running in an http server - Viem extensions - Provides a viem based client instance and some experimental optimistic updating apis.
- 🚧 Under construction Ethers extensions - An ethers based memory client and http client
- 🚧 Under construction
WebsocketClient
- A web socket based TevmClient similar to theHttpClient
Actions
The main interface for interacting with any Tevm client is it’s actions api
. See actions api guide or the TevmClient reference for more information.
Procedures
Tevm also has an client.request
method for doing JSON procedure calls. For MemoryClient
this procedure call happens in memory and for HttpClient
this procedure call is resolved remotely using JSON-RPC (json remote procedure call). For more information see the JSON-RPC docs and the client.request
generated reference docs.