Function client_for_url

Source
pub async fn client_for_url(
    addr: &str,
    timeout: Duration,
) -> Result<OgmiosClients, String>
Expand description

Returns client that works either with HTTP or WebSockets. HTTP does not return JSON-RPC error body in case of 400 Bad Request.