Skip to main content

helium_api/models/
block.rs

1use serde::Deserialize;
2
3#[derive(Debug, Deserialize)]
4pub struct Height {
5    /// The current block height of the chain.
6    pub height: u64,
7}
8
9#[derive(Debug, Deserialize)]
10pub struct Descriptions {
11    pub data: Vec<BlockData>,
12    pub cursor: Option<String>,
13}
14
15#[derive(Debug, Deserialize)]
16pub struct BlockData {
17    pub transaction_count: u64,
18    pub time: u64,
19    pub snapshot_hash: String,
20    pub prev_hash: String,
21    pub height: u64,
22    pub hash: String,
23}