reth_rpc_api::clients

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 Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn set_gas_price<'life0, 'async_trait>(
        &'life0 self,
        gas_price: U128,
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn set_gas_limit<'life0, 'async_trait>(
        &'life0 self,
        gas_price: U128,
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Available on crate feature client only.
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 Self: Sync + 'async_trait, 'life0: '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: U128, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Sets the minimum accepted gas price for the miner.

Source

fn set_gas_limit<'life0, 'async_trait>( &'life0 self, gas_price: U128, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: '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,