op_alloy::network

Type Alias AnyRpcHeader

Source
pub type AnyRpcHeader = Header<AnyHeader>;
Available on crate feature network only.
Expand description

A catch-all header type for handling headers on multiple networks.

Aliased Type§

struct AnyRpcHeader {
    pub hash: FixedBytes<32>,
    pub inner: AnyHeader,
    pub total_difficulty: Option<Uint<256, 4>>,
    pub size: Option<Uint<256, 4>>,
}

Fields§

§hash: FixedBytes<32>

Hash of the block

§inner: AnyHeader

Inner consensus header.

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

Total difficulty

Note: This field is now effectively deprecated: https://github.com/ethereum/execution-apis/pull/570

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

Integer the size of this block in bytes.