1use alloy_primitives::{Bytes, U128};
2use jsonrpsee::{core::RpcResult, proc_macros::rpc};
3
4#[cfg_attr(not(feature = "client"), rpc(server, namespace = "miner"))]
6#[cfg_attr(feature = "client", rpc(server, client, namespace = "miner"))]
7pub trait MinerApi {
8 #[method(name = "setExtra")]
12 fn set_extra(&self, record: Bytes) -> RpcResult<bool>;
13
14 #[method(name = "setGasPrice")]
16 fn set_gas_price(&self, gas_price: U128) -> RpcResult<bool>;
17
18 #[method(name = "setGasLimit")]
20 fn set_gas_limit(&self, gas_price: U128) -> RpcResult<bool>;
21}