Skip to main content

Web3ApiClient

Trait Web3ApiClient 

Source
pub trait Web3ApiClient: ClientT {
    // Provided methods
    fn client_version(
        &self,
    ) -> impl Future<Output = Result<String, Error>> + Send { ... }
    fn sha3(
        &self,
        input: Bytes,
    ) -> impl Future<Output = Result<FixedBytes<32>, Error>> + Send { ... }
}
Expand description

Client implementation for the Web3Api RPC API.

Provided Methods§

Source

fn client_version(&self) -> impl Future<Output = Result<String, Error>> + Send

Returns current client version.

Source

fn sha3( &self, input: Bytes, ) -> impl Future<Output = Result<FixedBytes<32>, Error>> + Send

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".

Implementors§

Source§

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