reth::utils

Function get_single_header

Source
pub async fn get_single_header<Client>(
    client: Client,
    id: HashOrNumber,
) -> Result<SealedHeader<<Client as HeadersClient>::Header>, Report>
where Client: HeadersClient, <Client as HeadersClient>::Header: BlockHeader,
Expand description

Re-exported from reth_node_core, also to prevent a breaking change. See the comment on the reth_node_core::args re-export for more details. Get a single header from network