helium-api 2.0.1

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

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::default();
    let account = accounts::get(
        &client,
        "13buBykFQf5VaQtv7mWj2PBY9Lq4i1DeXhg7C4Vbu3ppzqqNkTH",
    )
    .await?;
    println!("Account: {:?}", account);
    Ok(())
}