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