Crate anvil_server

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 ๐Ÿ”’