reth::rpc::api

Trait Web3ApiClient

Source
pub trait Web3ApiClient: ClientT {
    // Provided methods
    fn client_version<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: Sync + 'async_trait { ... }
    fn sha3<'life0, 'async_trait>(
        &'life0 self,
        input: Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<FixedBytes<32>, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: Sync + 'async_trait { ... }
}
Expand description

Client implementation for the Web3Api RPC API.

Provided Methods§

Source

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

Returns current client version.

Source

fn sha3<'life0, 'async_trait>( &'life0 self, input: Bytes, ) -> Pin<Box<dyn Future<Output = Result<FixedBytes<32>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Returns sha3 of the given data.

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§

Source§

impl<TypeJsonRpseeInteral> Web3ApiClient for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT,