Expand description
RPC endpoint management and parallel request handling
Re-exports§
pub use multicall::MulticallBuilder;pub use multicall::MulticallResult;pub use multicall::MULTICALL3_ADDRESS;pub use selector::get_archive_endpoint;pub use selector::get_rpc_endpoint;pub use selector::get_rpc_endpoint_for_block;pub use selector::get_rpc_url;pub use selector::get_rpc_url_for_block;pub use selector::SelectionOptions;
Modules§
- multicall
- Multicall3 support for batching multiple eth_call requests
- retry
- Retry utilities with exponential backoff
- selector
- Smart RPC endpoint selection
Structs§
- Endpoint
- A single RPC endpoint with its configuration and provider
- Endpoint
Health - Health metrics for a single endpoint
- Health
Tracker - Tracks health across all endpoints
- Optimization
Result - Result of optimizing an endpoint
- Retry
Config - Configuration for retry behavior
- Retry
Error - Error wrapper that includes retry information
- RpcPool
- Pool of RPC endpoints with load balancing and health tracking.
Traits§
- Retryable
Error - Determines if an error should be retried
Functions§
- optimize_
endpoint - Optimize an endpoint by detecting its capabilities
- test_
connectivity - Quick connectivity test for an endpoint
- with_
retry - Execute an async operation with retries
- with_
simple_ retry - Simple retry wrapper for operations that return Result with any error type