pegnetd 0.1.2

Pegnetd API client
Documentation
1
2
3
4
5
6
7
8
9
use pegnetd::*;

#[tokio::main]
async fn main() -> Result<()> {
  let api = Pegnetd::open_node();
  let response = sync_status(&api).await;
  assert!(response.result.syncheight > 0);
  Ok(())
}