Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 276 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 276 Bytes

lotus-api

JSON API application for Lotus.

Usage

use lotus_api::api::ChainApi;
use tokio::runtime::Runtime;

let mut rt = Runtime::new().unwrap();
let http = Http::new("http://47.52.21.141:1234/rpc/v0");
let ret:TipSet = rt.block_on(http.chain_head()).unwrap();