Trait EthExecuteApiClient

Source
pub trait EthExecuteApiClient: ClientT {
    // Provided methods
    fn call<'life0, 'async_trait>(
        &'life0 self,
        request: TransactionRequest,
        number_or_hash: Option<BlockNumberOrTagOrHash>,
        state_overrides: Option<StateOverrides>,
    ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn estimate_gas<'life0, 'async_trait>(
        &'life0 self,
        request: TransactionRequest,
        number_or_hash: Option<BlockNumberOrTag>,
        state_overrides: Option<StateOverrides>,
    ) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn create_access_list<'life0, 'async_trait>(
        &'life0 self,
        request: TransactionRequest,
        number_or_hash: Option<BlockNumberOrTag>,
    ) -> Pin<Box<dyn Future<Output = Result<AccessListResult, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the EthExecuteApi RPC API.

Provided Methods§

Source

fn call<'life0, 'async_trait>( &'life0 self, request: TransactionRequest, number_or_hash: Option<BlockNumberOrTagOrHash>, state_overrides: Option<StateOverrides>, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Executes a new message call immediately without creating a transaction on the blockchain.

Source

fn estimate_gas<'life0, 'async_trait>( &'life0 self, request: TransactionRequest, number_or_hash: Option<BlockNumberOrTag>, state_overrides: Option<StateOverrides>, ) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Generates and returns an estimate of hou much gas is necessary to allow the transaction to complete.

Source

fn create_access_list<'life0, 'async_trait>( &'life0 self, request: TransactionRequest, number_or_hash: Option<BlockNumberOrTag>, ) -> Pin<Box<dyn Future<Output = Result<AccessListResult, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Generates an access list for a transaction.

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