pub struct BlockMetadataTransaction {Show 19 fields
pub version: String,
pub hash: String,
pub state_change_hash: String,
pub event_root_hash: String,
pub state_checkpoint_hash: Option<String>,
pub gas_used: String,
pub success: bool,
pub vm_status: String,
pub accumulator_root_hash: String,
pub changes: Vec<WriteSetChange>,
pub id: String,
pub epoch: String,
pub round: String,
pub events: Vec<Event>,
pub previous_block_votes_bitvec: Vec<i32>,
pub proposer: String,
pub failed_proposer_indices: Vec<i32>,
pub timestamp: String,
pub block_metadata_extension: Option<Box<BlockMetadataTransactionBlockMetadataExtension>>,
}Expand description
BlockMetadataTransaction : A block metadata transaction This signifies the beginning of a block, and contains information about the specific block
Fields§
§version: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
hash: String§state_change_hash: String§event_root_hash: String§state_checkpoint_hash: Option<String>§gas_used: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
success: boolWhether the transaction was successful
vm_status: StringThe VM status of the transaction, can tell useful information in a failure
accumulator_root_hash: String§changes: Vec<WriteSetChange>Final state of resources changed by the transaction
id: String§epoch: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
round: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
events: Vec<Event>The events emitted at the block creation
previous_block_votes_bitvec: Vec<i32>Previous block votes
proposer: StringA hex encoded 32 byte Aptos account address. This is represented in a string as a 64 character hex string, sometimes shortened by stripping leading 0s, and adding a 0x. For example, address 0x0000000000000000000000000000000000000000000000000000000000000001 is represented as 0x1.
failed_proposer_indices: Vec<i32>The indices of the proposers who failed to propose
timestamp: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
block_metadata_extension: Option<Box<BlockMetadataTransactionBlockMetadataExtension>>Implementations§
Source§impl BlockMetadataTransaction
impl BlockMetadataTransaction
Sourcepub fn new(
version: String,
hash: String,
state_change_hash: String,
event_root_hash: String,
gas_used: String,
success: bool,
vm_status: String,
accumulator_root_hash: String,
changes: Vec<WriteSetChange>,
id: String,
epoch: String,
round: String,
events: Vec<Event>,
previous_block_votes_bitvec: Vec<i32>,
proposer: String,
failed_proposer_indices: Vec<i32>,
timestamp: String,
) -> BlockMetadataTransaction
pub fn new( version: String, hash: String, state_change_hash: String, event_root_hash: String, gas_used: String, success: bool, vm_status: String, accumulator_root_hash: String, changes: Vec<WriteSetChange>, id: String, epoch: String, round: String, events: Vec<Event>, previous_block_votes_bitvec: Vec<i32>, proposer: String, failed_proposer_indices: Vec<i32>, timestamp: String, ) -> BlockMetadataTransaction
A block metadata transaction This signifies the beginning of a block, and contains information about the specific block
Trait Implementations§
Source§impl Clone for BlockMetadataTransaction
impl Clone for BlockMetadataTransaction
Source§fn clone(&self) -> BlockMetadataTransaction
fn clone(&self) -> BlockMetadataTransaction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BlockMetadataTransaction
impl Debug for BlockMetadataTransaction
Source§impl Default for BlockMetadataTransaction
impl Default for BlockMetadataTransaction
Source§fn default() -> BlockMetadataTransaction
fn default() -> BlockMetadataTransaction
Source§impl<'de> Deserialize<'de> for BlockMetadataTransaction
impl<'de> Deserialize<'de> for BlockMetadataTransaction
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>,
Source§impl PartialEq for BlockMetadataTransaction
impl PartialEq for BlockMetadataTransaction
Source§fn eq(&self, other: &BlockMetadataTransaction) -> bool
fn eq(&self, other: &BlockMetadataTransaction) -> bool
self and other values to be equal, and is used by ==.