client/rpc/types/cfx/
status.rs

1// Copyright 2019 Conflux Foundation. All rights reserved.
2// Conflux is free software and distributed under GNU General Public License.
3// See http://www.gnu.org/licenses/
4
5use cfx_types::{H256, U64};
6use serde::{Deserialize, Serialize};
7
8#[derive(Debug, Serialize, Deserialize)]
9#[serde(rename_all = "camelCase")]
10pub struct Status {
11    /// Hash of the block
12    pub best_hash: H256,
13    /// The best chain id,
14    pub chain_id: U64,
15    /// The best chain id,
16    pub ethereum_space_chain_id: U64,
17    /// The network id,
18    pub network_id: U64,
19    /// The number of epochs
20    pub epoch_number: U64,
21    /// The number of blocks
22    pub block_number: U64,
23    /// The number of pending transactions
24    pub pending_tx_number: U64,
25    /// The latest checkpoint epoch.
26    pub latest_checkpoint: U64,
27    /// The latest confirmed epoch.
28    pub latest_confirmed: U64,
29    /// The latest executed epoch.
30    pub latest_state: U64,
31    /// The latest finalized epoch.
32    pub latest_finalized: U64,
33}