Expand description
Useful layer implementations for the provider.
Structs§
- Anvil
Layer - A layer that wraps an
Anvil
config. - 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
CacheProvider
holds the underlying in-memory LRU cache and overrides methods from theProvider
trait. 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.