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§
Sourcefn get_all_fees(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<Vec<(AccountId, PerTenThousands)>, ApiError>
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.