jlib 0.3.7

A lightweight blockchain lib.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate jlib;
use jlib::api::query::server_info::*;

use jlib::Config;
pub static TEST_SERVER: &'static str = "ws://42.81.160.87:5020";

fn main() {
    let config = Config::new(TEST_SERVER, true);
    ServerInfo::new().request_server_info(config, |x| match x {
        Ok(response) => {
            println!("build_version : {:?}", response.build_version);
        },
        Err(_) => {
            println! ("error occured.");
        }
    });
}