Crate anvil_server

Source
Expand description

Bootstrap [axum] RPC servers.

Modules§

config 🔒
error 🔒
Error variants used to unify different connection streams
handler 🔒
ipcipc
IPC handling
pubsub 🔒
ws 🔒

Structs§

PubSubContext
Contains additional context and tracks subscriptions
ServerConfig
Additional server options.

Traits§

PubSubRpcHandler
The general purpose trait for handling RPC requests and subscriptions
RpcHandler
Helper trait that is used to execute ethereum rpc calls

Functions§

http_router
Configures an [axum::Router] that handles JSON-RPC calls via HTTP.
http_ws_router
Configures an [axum::Router] that handles JSON-RPC calls via both HTTP and WS.
router_inner 🔒