pub async fn serve(
addr: SocketAddr,
api: EthApi,
config: ServerConfig,
) -> Result<impl Future<Output = Result<()>>>
Expand description
Configures a server that handles EthApi
related JSON-RPC calls via HTTP and WS.
The returned future creates a new server, binding it to the given address, which returns another future that runs it.