helium-api 2.0.1

An async library for the Helium blockchain REST API
Documentation
use crate::*;

pub async fn get(client: &Client) -> Result<serde_json::Map<String, serde_json::Value>> {
    let result: serde_json::Value = client.fetch("/vars", NO_QUERY).await?;
    result
        .as_object()
        .cloned()
        .ok_or_else(|| Error::value(result))
}