helium-api 2.0.1

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

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::default();
    let height = blocks::height(&client).await?;
    println!("Block Height: {}", height);
    Ok(())
}