Struct chainhook_types::StacksBlockData
source · pub struct StacksBlockData {
pub block_identifier: BlockIdentifier,
pub parent_block_identifier: BlockIdentifier,
pub timestamp: i64,
pub transactions: Vec<StacksTransactionData>,
pub metadata: StacksBlockMetadata,
}Expand description
StacksBlock contain an array of Transactions that occurred at a particular BlockIdentifier. A hard requirement for blocks returned by Rosetta implementations is that they MUST be inalterable: once a client has requested and received a block identified by a specific BlockIndentifier, all future calls for that same BlockIdentifier must return the same block contents.
Fields§
§block_identifier: BlockIdentifier§parent_block_identifier: BlockIdentifier§timestamp: i64The timestamp of the block in milliseconds since the Unix Epoch. The timestamp is stored in milliseconds because some blockchains produce blocks more often than once a second.
transactions: Vec<StacksTransactionData>§metadata: StacksBlockMetadataTrait Implementations§
source§impl Clone for StacksBlockData
impl Clone for StacksBlockData
source§fn clone(&self) -> StacksBlockData
fn clone(&self) -> StacksBlockData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for StacksBlockData
impl Debug for StacksBlockData
source§impl<'de> Deserialize<'de> for StacksBlockData
impl<'de> Deserialize<'de> for StacksBlockData
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
source§impl PartialEq<StacksBlockData> for StacksBlockData
impl PartialEq<StacksBlockData> for StacksBlockData
source§fn eq(&self, other: &StacksBlockData) -> bool
fn eq(&self, other: &StacksBlockData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.