Skip to main content

fetch_block_context

Function fetch_block_context 

Source
pub async fn fetch_block_context<P: Provider<AnyNetwork>>(
    provider: &P,
    block: BlockId,
) -> StorageFetchResult<BlockContextSample>
Expand description

Sample a block’s EVM context in one eth_call (see BLOCK_CONTEXT_EXTRACTOR_CODE).