pub fn router(api: EthApi, config: ServerConfig) -> Router
Configures an [axum::Router] that handles EthApi related JSON-RPC calls via HTTP and WS, and Beacon REST API calls.
axum::Router
EthApi