@tevm/voltaire/provider types JSON-RPC calls at compile time through RpcSchema and TypedProvider<TRpcSchema, TEventMap>. Every method name, parameter tuple, and return type is resolved from a declarative schema tuple without runtime overhead.
Source: RpcSchema.ts, TypedProvider.ts, VoltaireRpcSchema.ts.
Core Schema Types
RpcSchema is a readonly array of { Method, Parameters?, ReturnType } entries:
Using TypedProvider with VoltaireRpcSchema
VoltaireRpcSchema bundles method definitions across eth, debug, engine, web3, net, txpool, and anvil. Typing a provider against VoltaireRpcSchema infers exact parameter tuples and return types for provider.request(...):
Extending or Overriding a Schema
UseDerivedRpcSchema<TBase, TOverride> to add vendor-specific RPC methods (such as Alchemy, Flashbots, or L2 sequencers) while retaining all methods in VoltaireRpcSchema:
State and Block Overrides
@tevm/voltaire/provider exports StateOverride and BlockOverrides for typed eth_call and eth_estimateGas simulations:
OpenRPC Base Types (@tevm/voltaire/jsonrpc)
@tevm/voltaire/jsonrpc re-exports the base JSON-RPC wire types used by request builders:
Exported Types Summary
Related
- Method API — Request builder functions
- Error Handling —
ProviderRpcErrorand code tables - Branded Types — Zero-overhead nominal typing in Voltaire

