Expand description
Useful layer implementations for the provider.
Structs§
- Anvil
Layer - A layer that wraps an
Anvilconfig. - Anvil
Provider - A provider that wraps an
AnvilInstance, preventing the instance from being dropped while the provider is in use. - Cache
Layer - A provider layer that caches RPC responses and serves them on subsequent requests.
- Cache
Provider - The
CacheProviderholds the underlying in-memory LRU cache and overrides methods from theProvidertrait. It attempts to fetch from the cache and fallbacks to the RPC in case of a cache miss. - Call
Batch Layer - Provider layer that aggregates contract calls (
eth_call) over a time period into a single Multicall3 contract call. - Call
Batch Provider - A provider that batches multiple requests into a single request.
- Chain
Layer - A layer that wraps a
NamedChain. The layer will be used to set the client’s poll interval based on the average block time for this chain. - Shared
Cache - Shareable cache.