Skip to main content
@tevm/voltaire/provider provides EIP-1193 provider implementations (HttpProvider, WebSocketProvider, InMemoryProvider, ForkProvider), TypedProvider<TRpcSchema>, and EIP-6963 wallet discovery. @tevm/voltaire/jsonrpc pairs with it by exporting request builders (Rpc.Eth.*, Rpc.Wallet.*, Rpc.Anvil.*, Rpc.Hardhat.*, debug, engine) generated from the Ethereum OpenRPC specification.
Looking for ethers v6 or viem APIs? Copy the ethers-provider or viem-publicclient Skill built on top of this interface.

Provider Implementations

All providers implement the EIP-1193 interface (request, on, removeListener) and throw RpcError objects on failure.

Quick Example

Core Interface

Source files in the repository: Provider.ts, HttpProvider.ts, WebSocketProvider.ts, InMemoryProvider.ts, ForkProvider.ts.

Documentation Map

Getting Started

Instantiate HTTP, WebSocket, InMemory, and Fork providers and execute requests.

Method API

Request builder conventions across eth, wallet, debug, engine, anvil, and hardhat.

Type System

RpcSchema, VoltaireRpcSchema, TypedProvider, and schema overrides.

Events

EIP-1193 lifecycle events and WebSocketProvider pub/sub streams.

Error Handling

ProviderRpcError, JSON-RPC 2.0, EIP-1193, and EIP-1474 error codes.

Comparison

Tradeoffs versus raw EIP-1193, ethers.js, and viem.

Method Namespaces