Near API

Rust implementation of Near API library that compatible with tokio.

Usage

First, add this to your Cargo.toml:

toml [dependencies] near-api = "0.1.0"

Example

```rust use nearprimitivesv01::types::{BlockReference, Finality};

[tokio::test]

async fn getpools() { let nearclient = nearapi::newclient("https://rpc.mainnet.near.org"); let block = near_client .block(BlockReference::Finality(Finality::Final)) .await .unwrap(); println!("block {}", block.header.height); } ```