Trait BlockProducerFeesApi

Source
pub trait BlockProducerFeesApi<Block: BlockT, AccountId: Decode>: Core<Block> {
    // Provided method
    fn get_all_fees(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<Vec<(AccountId, PerTenThousands)>, ApiError> { ... }
}
Expand description

Runtime API for block producer fees. Required for convenient access to the data by RPC.

Provided Methods§

Source

fn get_all_fees( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<Vec<(AccountId, PerTenThousands)>, ApiError>

Retrieves the latests fees of all accounts that have set them.

Trait Implementations§

Source§

impl<Block: BlockT, AccountId: Decode> RuntimeApiInfo for dyn BlockProducerFeesApi<Block, AccountId>

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§