pub trait RethApiClient: SubscriptionClientT {
// Provided methods
fn reth_get_balance_changes_in_block(
&self,
block_id: BlockId,
) -> impl Future<Output = Result<HashMap<Address, Uint<256, 4>>, Error>> + Send { ... }
fn reth_subscribe_chain_notifications(
&self,
) -> impl Future<Output = Result<Subscription<CanonStateNotification>, Error>> + Send { ... }
fn reth_subscribe_persisted_block(
&self,
) -> impl Future<Output = Result<Subscription<NumHash>, Error>> + Send { ... }
}Expand description
Client implementation for the RethApi RPC API.
Provided Methods§
Sourcefn reth_get_balance_changes_in_block(
&self,
block_id: BlockId,
) -> impl Future<Output = Result<HashMap<Address, Uint<256, 4>>, Error>> + Send
fn reth_get_balance_changes_in_block( &self, block_id: BlockId, ) -> impl Future<Output = Result<HashMap<Address, Uint<256, 4>>, Error>> + Send
Returns all ETH balance changes in a block
Sourcefn reth_subscribe_chain_notifications(
&self,
) -> impl Future<Output = Result<Subscription<CanonStateNotification>, Error>> + Send
fn reth_subscribe_chain_notifications( &self, ) -> impl Future<Output = Result<Subscription<CanonStateNotification>, Error>> + Send
Subscribe to json ChainNotifications
Sourcefn reth_subscribe_persisted_block(
&self,
) -> impl Future<Output = Result<Subscription<NumHash>, Error>> + Send
fn reth_subscribe_persisted_block( &self, ) -> impl Future<Output = Result<Subscription<NumHash>, Error>> + Send
Subscribe to persisted block notifications.
Emits a notification with the block number and hash when a new block is persisted to disk.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.