helium-api 3.3.1

An async library for the Helium blockchain REST API
Documentation
1
2
3
4
5
6
7
8
9
10
use helium_api::{blocks, Client, DEFAULT_BASE_URL};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new_with_base_url(DEFAULT_BASE_URL.to_string(), "helium-api-rs/example");

    let height = blocks::height(&client).await?;
    println!("Block Height: {}", height);
    Ok(())
}