pub trait BlockProducerFeesRpcServer<AccountId: Decode>:
Sized
+ Send
+ Sync
+ 'static {
// Required method
fn get_block_producer_fees(&self) -> RpcResult<Vec<FeesSettings<AccountId>>>;
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where AccountId: Send + Sync + 'static + Clone + Serialize { ... }
}
Expand description
Server trait implementation for the BlockProducerFeesRpc
RPC API.
Required Methods§
Sourcefn get_block_producer_fees(&self) -> RpcResult<Vec<FeesSettings<AccountId>>>
fn get_block_producer_fees(&self) -> RpcResult<Vec<FeesSettings<AccountId>>>
Returns the latest recorded fees. To get all stored data query pallet storage directly.
Provided Methods§
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.