Trait EthExecuteApiServer

Source
pub trait EthExecuteApiServer:
    Sized
    + Send
    + Sync
    + 'static {
    // Required methods
    fn call<'life0, 'async_trait>(
        &'life0 self,
        request: TransactionRequest,
        number_or_hash: Option<BlockNumberOrTagOrHash>,
        state_overrides: Option<StateOverrides>,
    ) -> Pin<Box<dyn Future<Output = RpcResult<Bytes>> + Send + 'async_trait>>
       where Self: '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 = RpcResult<U256>> + Send + 'async_trait>>
       where Self: '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 = RpcResult<AccessListResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description

Server trait implementation for the EthExecuteApi RPC API.

Required 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 = RpcResult<Bytes>> + Send + 'async_trait>>
where Self: '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 = RpcResult<U256>> + Send + 'async_trait>>
where Self: '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 = RpcResult<AccessListResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Generates an access list for a transaction.

Provided Methods§

Source

fn into_rpc(self) -> RpcModule<Self>

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

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§