Skip to main content

Module rpc

Module rpc 

Source
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
EndpointHealth
Health metrics for a single endpoint
HealthTracker
Tracks health across all endpoints
OptimizationResult
Result of optimizing an endpoint
RetryConfig
Configuration for retry behavior
RetryError
Error wrapper that includes retry information
RpcPool
Pool of RPC endpoints with load balancing and health tracking.

Traits§

RetryableError
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