Module server

Module server 

Source
Expand description

axum RPC server implementations This module provides the infrastructure to launch an Ethereum JSON-RPC server (via HTTP, WebSocket, and IPC) and Beacon Node REST API.

Modulesยง

beacon ๐Ÿ”’
Beacon Node REST API implementation for Anvil.
rpc_handlers ๐Ÿ”’
Contains RPC handlers

Functionsยง

router
Configures an [axum::Router] that handles EthApi related JSON-RPC calls via HTTP and WS, and Beacon REST API calls.
serve
Configures a server that handles EthApi related JSON-RPC calls via HTTP and WS.
serve_on
Configures a server that handles EthApi related JSON-RPC calls via HTTP and WS.
spawn_ipc
Launches an ipc server at the given path in a new task
try_spawn_ipc
Launches an ipc server at the given path in a new task.