reth_primitives/transaction/meta.rs
1use alloy_primitives::B256;
2
3/// Additional fields in the context of a block that contains this transaction.
4#[derive(Debug, Clone, Copy, Default, Eq, PartialEq)]
5pub struct TransactionMeta {
6 /// Hash of the transaction.
7 pub tx_hash: B256,
8 /// Index of the transaction in the block
9 pub index: u64,
10 /// Hash of the block.
11 pub block_hash: B256,
12 /// Number of the block.
13 pub block_number: u64,
14 /// Base fee of the block.
15 pub base_fee: Option<u64>,
16 /// The excess blob gas of the block.
17 pub excess_blob_gas: Option<u64>,
18 /// The block's timestamp.
19 pub timestamp: u64,
20}