alloy_network_primitives/tx_meta.rs
1use alloy_primitives::B256;
2
3/// Metadata locating an included transaction within a block.
4///
5/// [`crate::TransactionResponse::inclusion_info`] constructs this only when the block hash, block
6/// number, and transaction index are all present. The derived `Default` is an all-zero location;
7/// it is not a pending sentinel.
8#[derive(Debug, Clone, Default, Eq, PartialEq)]
9pub struct InclusionInfo {
10 /// The hash of the block.
11 pub block_hash: B256,
12 /// The block number.
13 pub block_number: u64,
14 /// The index of the transaction in the block.
15 pub transaction_index: u64,
16}