Trait BlockProducerFeesRpcClient

Source
pub trait BlockProducerFeesRpcClient<AccountId>: ClientT
where AccountId: Send + Sync + 'static + DeserializeOwned + Decode,
{ // Provided method fn get_block_producer_fees<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<FeesSettings<AccountId>>, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } }
Expand description

Client implementation for the BlockProducerFeesRpc RPC API.

Provided Methods§

Source

fn get_block_producer_fees<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<FeesSettings<AccountId>>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns the latest recorded fees. To get all stored data query pallet storage directly.

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, AccountId> BlockProducerFeesRpcClient<AccountId> for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT, AccountId: Send + Sync + 'static + DeserializeOwned + Decode,