Skip to main content

fetch_one_block

Function fetch_one_block 

Source
async fn fetch_one_block(
    provider: RootProvider<AnyNetwork>,
    block_number: u64,
    bal_enabled: bool,
) -> Result<Option<(AnyRpcBlock, Option<BlockAccessList>)>>
Expand description

Fetches one block + receipts (and optionally its BAL) from the RPC. Returns Ok(None) when the block doesn’t exist yet (chain-tip reached).