pub struct Block {
pub height: u64,
pub hash: String,
pub parent_hash: String,
pub ts_ms: u64,
pub proposer: String,
pub tx_hashes: Vec<String>,
pub app_hash: String,
}Expand description
A block header + tx ids. Full bodies retrievable via tx_by_hash.
Fields§
§height: u64Block height.
hash: String32-byte block hash, 0x-prefixed lowercase hex.
parent_hash: StringParent block hash.
ts_ms: u64Block timestamp (unix ms).
proposer: StringValidator that proposed this block.
tx_hashes: Vec<String>Transaction hashes in inclusion order.
app_hash: StringApplication state commitment post-block — an opaque 0x-hex 32-byte hash
(a pure full-state fold of the server’s Exchange ledger). Does NOT
encode height/epoch, so an unchanged-state chain reports a constant
value. Round-tripped verbatim; the client does not recompute or verify it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more