op_alloy::network::primitives

Trait HeaderResponse

Source
pub trait HeaderResponse: BlockHeader {
    // Required method
    fn hash(&self) -> FixedBytes<32>;
}
Available on crate feature network only.
Expand description

Header JSON-RPC response.

Required Methods§

Source

fn hash(&self) -> FixedBytes<32>

Block hash

Implementations on Foreign Types§

Source§

impl<H> HeaderResponse for Header<H>
where H: BlockHeader,

Source§

fn hash(&self) -> FixedBytes<32>

Source§

impl<T> HeaderResponse for WithOtherFields<T>
where T: HeaderResponse,

Source§

fn hash(&self) -> FixedBytes<32>

Implementors§