alloy-network-primitives 2.0.5

Primitive types for Alloy network abstraction
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use alloy_primitives::B256;

/// Additional fields in the context of a block that contains an included transaction.
#[derive(Debug, Clone, Default, Eq, PartialEq)]
pub struct InclusionInfo {
    /// The hash of the block.
    pub block_hash: B256,
    /// The block number.
    pub block_number: u64,
    /// The index of the transaction in the block.
    pub transaction_index: u64,
}