EthApiClient

Trait EthApiClient 

Source
pub trait EthApiClient: ClientT {
    // Provided methods
    fn chain_id<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn get_block_by_number<'life0, 'async_trait>(
        &'life0 self,
        block_number_or_tag: BlockNumberOrTag,
        hydrated_transactions: bool,
    ) -> Pin<Box<dyn Future<Output = Result<Block, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn get_block_by_hash<'life0, 'async_trait>(
        &'life0 self,
        block_hash: B256,
        hydrated_transactions: bool,
    ) -> Pin<Box<dyn Future<Output = Result<Block, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn get_balance<'life0, 'async_trait>(
        &'life0 self,
        address: Address,
        block: BlockId,
    ) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn get_code<'life0, 'async_trait>(
        &'life0 self,
        address: Address,
        block: BlockId,
    ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn get_storage_at<'life0, 'async_trait>(
        &'life0 self,
        address: Address,
        slot: U256,
        block: BlockId,
    ) -> Pin<Box<dyn Future<Output = Result<B256, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn call<'life0, 'async_trait>(
        &'life0 self,
        transaction: TransactionRequest,
        block: BlockId,
    ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the EthApi RPC API.

Provided Methods§

Source

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

Source

fn get_block_by_number<'life0, 'async_trait>( &'life0 self, block_number_or_tag: BlockNumberOrTag, hydrated_transactions: bool, ) -> Pin<Box<dyn Future<Output = Result<Block, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source

fn get_block_by_hash<'life0, 'async_trait>( &'life0 self, block_hash: B256, hydrated_transactions: bool, ) -> Pin<Box<dyn Future<Output = Result<Block, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source

fn get_balance<'life0, 'async_trait>( &'life0 self, address: Address, block: BlockId, ) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source

fn get_code<'life0, 'async_trait>( &'life0 self, address: Address, block: BlockId, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source

fn get_storage_at<'life0, 'async_trait>( &'life0 self, address: Address, slot: U256, block: BlockId, ) -> Pin<Box<dyn Future<Output = Result<B256, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source

fn call<'life0, 'async_trait>( &'life0 self, transaction: TransactionRequest, block: BlockId, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

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> EthApiClient for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT,