Skip to main content

account_proof_fetcher

Function account_proof_fetcher 

Source
pub fn account_proof_fetcher<P>(
    provider: Arc<P>,
    max_concurrent_proofs: usize,
) -> AccountProofFetchFn
where P: Provider<AnyNetwork> + 'static,
Expand description

Build the cache’s bounded provider-backed eth_getProof callback without constructing an EvmCache.

The callback accepts its BlockId per invocation, allowing a background worker to pass an EIP-1898 exact canonical hash. max_concurrent_proofs is normalized to at least one and preserves input ordering while overlapping independent single-account proof requests.