solana_sdk/epoch_info.rs
1use crate::clock::{Epoch, Slot};
2
3#[derive(Serialize, Deserialize, Clone, Debug)]
4#[serde(rename_all = "camelCase")]
5pub struct EpochInfo {
6 /// The current epoch
7 pub epoch: Epoch,
8
9 /// The current slot, relative to the start of the current epoch
10 pub slot_index: u64,
11
12 /// The number of slots in this epoch
13 pub slots_in_epoch: u64,
14
15 /// The absolute current slot
16 pub absolute_slot: Slot,
17
18 /// The current block height
19 pub block_height: u64,
20
21 /// Total number of transactions processed without error since genesis
22 pub transaction_count: Option<u64>,
23}