RethApiClient

Trait RethApiClient 

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 { ... }
}
Expand description

Client implementation for the RethApi RPC API.

Provided Methods§

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

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.

Implementors§

§

impl<TypeJsonRpseeInternal> RethApiClient for TypeJsonRpseeInternal
where TypeJsonRpseeInternal: SubscriptionClientT,