In cargo.toml:
toml
pegnetd = "0.1.2"
```rust
async fn main() -> Result<(), reqwest::Error> { let api = Pegnetd::opennode(); let response = syncstatus(&api).await; assert!(response.result.syncheight > 0); Ok(()) } ```
```rust // Local Node Configuration // http://localhost:8070/v1 let api = Pegnetd::new();
// Public Node Configuration // https://api.pegnetd.com let api = Pegnetd::open_node();
// Custom Node Configuration let api = Pegnetd::custom_node("http://192.168.1.42:8070/v1"); ```
PR's welcome. Fork the library and submit to dev branch. By contributing to this library you agree to it being Apache 2.0 licensed