Skip to main content

k256_sdk/types/
blockhash.rs

1//! Blockhash types.
2
3use serde::{Deserialize, Serialize};
4
5/// Recent blockhash from K256.
6#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
7pub struct Blockhash {
8    /// Solana slot of the blockhash
9    pub slot: u64,
10    /// Unix timestamp in milliseconds
11    pub timestamp_ms: u64,
12    /// Base58-encoded recent blockhash
13    pub blockhash: String,
14    /// Block height
15    pub block_height: u64,
16    /// Last valid block height for transactions
17    pub last_valid_block_height: u64,
18    /// Whether data may be stale
19    pub is_stale: bool,
20}