Trait BlockProducerFeesRpcServer

Source
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§

Source

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§

Source

fn into_rpc(self) -> RpcModule<Self>
where AccountId: Send + Sync + 'static + Clone + Serialize,

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§

Source§

impl<C, Block, AccountId: Decode + Sync + Send + 'static> BlockProducerFeesRpcServer<AccountId> for BlockProducerFeesRpc<C, Block, AccountId>
where Block: BlockT, C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>, C::Api: BlockProducerFeesApi<Block, AccountId>,