Trait reth_rpc_api::clients::EthFilterApiClient

pub trait EthFilterApiClient<T>: ClientT
where T: RpcObject + Send + Sync + 'static + DeserializeOwned,
{ // Provided methods fn new_filter<'life0, 'async_trait>( &'life0 self, filter: Filter, ) -> Pin<Box<dyn Future<Output = Result<FilterId, Error>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: Sync + 'async_trait { ... } fn new_block_filter<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<FilterId, Error>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: Sync + 'async_trait { ... } fn new_pending_transaction_filter<'life0, 'async_trait>( &'life0 self, kind: Option<PendingTransactionFilterKind>, ) -> Pin<Box<dyn Future<Output = Result<FilterId, Error>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: Sync + 'async_trait { ... } fn filter_changes<'life0, 'async_trait>( &'life0 self, id: FilterId, ) -> Pin<Box<dyn Future<Output = Result<FilterChanges<T>, Error>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: Sync + 'async_trait { ... } fn filter_logs<'life0, 'async_trait>( &'life0 self, id: FilterId, ) -> Pin<Box<dyn Future<Output = Result<Vec<Log>, Error>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: Sync + 'async_trait { ... } fn uninstall_filter<'life0, 'async_trait>( &'life0 self, id: FilterId, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: Sync + 'async_trait { ... } fn logs<'life0, 'async_trait>( &'life0 self, filter: Filter, ) -> Pin<Box<dyn Future<Output = Result<Vec<Log>, Error>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: Sync + 'async_trait { ... } }
Available on crate feature client only.
Expand description

Client implementation for the EthFilterApi RPC API.

Provided Methods§

fn new_filter<'life0, 'async_trait>( &'life0 self, filter: Filter, ) -> Pin<Box<dyn Future<Output = Result<FilterId, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Creates anew filter and returns its id.

fn new_block_filter<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<FilterId, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Creates a new block filter and returns its id.

fn new_pending_transaction_filter<'life0, 'async_trait>( &'life0 self, kind: Option<PendingTransactionFilterKind>, ) -> Pin<Box<dyn Future<Output = Result<FilterId, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Creates a pending transaction filter and returns its id.

fn filter_changes<'life0, 'async_trait>( &'life0 self, id: FilterId, ) -> Pin<Box<dyn Future<Output = Result<FilterChanges<T>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Returns all filter changes since last poll.

fn filter_logs<'life0, 'async_trait>( &'life0 self, id: FilterId, ) -> Pin<Box<dyn Future<Output = Result<Vec<Log>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Returns all logs matching given filter (in a range ‘from’ - ‘to’).

fn uninstall_filter<'life0, 'async_trait>( &'life0 self, id: FilterId, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Uninstalls filter.

fn logs<'life0, 'async_trait>( &'life0 self, filter: Filter, ) -> Pin<Box<dyn Future<Output = Result<Vec<Log>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Returns logs matching given filter object.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<TypeJsonRpseeInteral, T> EthFilterApiClient<T> for TypeJsonRpseeInteral
where T: RpcObject + Send + Sync + 'static + DeserializeOwned, TypeJsonRpseeInteral: ClientT,