pub trait RethApiClient: SubscriptionClientT {
// Provided methods
fn reth_get_balance_changes_in_block(
&self,
block_id: BlockId,
) -> impl Future<Output = Result<HashMap<Address, U256>, Error>> + Send { ... }
fn reth_subscribe_chain_notifications(
&self,
) -> impl Future<Output = Result<Subscription<CanonStateNotification>, Error>> + Send { ... }
}
Available on crate feature
client
only.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, U256>, Error>> + Send
fn reth_get_balance_changes_in_block( &self, block_id: BlockId, ) -> impl Future<Output = Result<HashMap<Address, U256>, 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
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.