Struct alloy_consensus::transaction::TransactionMeta
source · pub struct TransactionMeta {
pub tx_hash: B256,
pub index: u64,
pub block_hash: B256,
pub block_number: u64,
pub base_fee: Option<u64>,
pub excess_blob_gas: Option<u64>,
pub timestamp: u64,
}
Expand description
Additional fields in the context of a block that contains this mined transaction.
This contains mandatory block fields (block hash, number, timestamp, index).
Fields§
§tx_hash: B256
Hash of the transaction.
index: u64
Index of the transaction in the block
block_hash: B256
Hash of the block.
block_number: u64
Number of the block.
base_fee: Option<u64>
Base fee of the block.
excess_blob_gas: Option<u64>
The excess blob gas of the block.
timestamp: u64
The block’s timestamp.
Trait Implementations§
source§impl Clone for TransactionMeta
impl Clone for TransactionMeta
source§fn clone(&self) -> TransactionMeta
fn clone(&self) -> TransactionMeta
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 TransactionMeta
impl Debug for TransactionMeta
source§impl Default for TransactionMeta
impl Default for TransactionMeta
source§fn default() -> TransactionMeta
fn default() -> TransactionMeta
Returns the “default value” for a type. Read more
source§impl PartialEq for TransactionMeta
impl PartialEq for TransactionMeta
source§fn eq(&self, other: &TransactionMeta) -> bool
fn eq(&self, other: &TransactionMeta) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TransactionMeta
impl Eq for TransactionMeta
impl StructuralPartialEq for TransactionMeta
Auto Trait Implementations§
impl Freeze for TransactionMeta
impl RefUnwindSafe for TransactionMeta
impl Send for TransactionMeta
impl Sync for TransactionMeta
impl Unpin for TransactionMeta
impl UnwindSafe for TransactionMeta
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.