Type Alias reth_rpc_eth_api::types::RpcBlock

source ·
pub type RpcBlock<T> = Block<RpcTransaction<T>, <T as Network>::HeaderResponse>;
Expand description

Adapter for network specific block type.

Aliased Type§

struct RpcBlock<T> {
    pub header: <T as Network>::HeaderResponse,
    pub uncles: Vec<FixedBytes<32>>,
    pub transactions: BlockTransactions<<T as Network>::TransactionResponse>,
    pub size: Option<Uint<256, 4>>,
    pub withdrawals: Option<Vec<Withdrawal>>,
}

Fields§

§header: <T as Network>::HeaderResponse

Header of the block.

§uncles: Vec<FixedBytes<32>>

Uncles’ hashes.

§transactions: BlockTransactions<<T as Network>::TransactionResponse>

Block Transactions. In the case of an uncle block, this field is not included in RPC responses, and when deserialized, it will be set to [BlockTransactions::Uncle].

§size: Option<Uint<256, 4>>

Integer the size of this block in bytes.

§withdrawals: Option<Vec<Withdrawal>>

Withdrawals in the block.

Layout§

Note: Encountered an error during type layout; the type failed to be normalized.