reth::rpc::api

Trait MinerApiClient

Source
pub trait MinerApiClient: ClientT {
    // Provided methods
    fn set_extra<'life0, 'async_trait>(
        &'life0 self,
        record: Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: Sync + 'async_trait { ... }
    fn set_gas_price<'life0, 'async_trait>(
        &'life0 self,
        gas_price: Uint<128, 2>,
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: Sync + 'async_trait { ... }
    fn set_gas_limit<'life0, 'async_trait>(
        &'life0 self,
        gas_price: Uint<128, 2>,
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: Sync + 'async_trait { ... }
}
Expand description

Client implementation for the MinerApi RPC API.

Provided Methods§

Source

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

Sets the extra data string that is included when this miner mines a block.

Returns an error if the extra data is too long.

Source

fn set_gas_price<'life0, 'async_trait>( &'life0 self, gas_price: Uint<128, 2>, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Sets the minimum accepted gas price for the miner.

Source

fn set_gas_limit<'life0, 'async_trait>( &'life0 self, gas_price: Uint<128, 2>, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Sets the gaslimit to target towards during mining.

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