Skip to main content

point_read_storage_fetcher

Function point_read_storage_fetcher 

Source
pub fn point_read_storage_fetcher<P>(
    provider: Arc<P>,
    config: StorageBatchConfig,
) -> StorageBatchFetchFn
where P: Provider<AnyNetwork> + 'static,
Expand description

Build the classic point-read StorageBatchFetchFn: JSON-RPC batches of eth_getStorageAt, sized and throttled by StorageBatchConfig.

This is the default fetcher’s fallback path (see StorageFetchStrategy) and the whole fetcher under StorageFetchStrategy::PointRead. It is public so callers composing their own fetchers — e.g. bulk_call_storage_fetcher_with_fallback over a differently-tuned repair path — can reuse it.