Trait polkadot_sdk_frame::runtime::apis::AuraApi
pub trait AuraApi<Block, AuthorityId>: Core<Block>where
Block: Block,
AuthorityId: Codec,{
// Provided methods
fn slot_duration(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<SlotDuration, ApiError> { ... }
fn authorities(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<Vec<AuthorityId>, ApiError> { ... }
}
Expand description
API necessary for block authorship with aura.
Provided Methods§
fn slot_duration(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<SlotDuration, ApiError>
fn slot_duration( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<SlotDuration, ApiError>
Returns the slot duration for Aura.
Currently, only the value provided by this type at genesis will be used.
Return the current set of authorities.