Skip to main content

fetch_parent

Function fetch_parent 

Source
pub async fn fetch_parent<P: Provider<AnyNetwork>>(
    provider: &P,
    block: &AnyRpcBlock,
) -> Result<Option<AnyRpcBlock>>
Expand description

Fetches the parent of block, or None for genesis.