Function drand_client_rs::new_http_client
source · pub fn new_http_client(
base_url: &str
) -> Result<DrandClient<'_, HttpTransport>, DrandClientError>
Expand description
create a new instance of the client with an HTTP transport for a given base_url
.
Supported base_url
s include: “https://api.drand.sh”, “https://drand.cloudflare.com” and “https://api.drand.secureweb3.com:6875”.
A full list can be found at https://drand.love/developer/