blockpulsar_client_rust 1.0.0

Rust client for Blockpulsar API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, Clone)]
pub struct ChainTip {
  pub height: u32,
  pub hash: String,
  pub branchlen: u32,
  pub status: String
}

impl ChainTip {
  pub fn new(height: u32, hash: &str, branchlen: u32, status: &str) -> ChainTip {
    return ChainTip {
      height: height,
      hash: String::from(hash),
      branchlen: branchlen,
      status: String::from(status)
    };
  }
}