pub trait BabeApiServer: Sized + Send + Sync + 'static {
    fn epoch_authorship<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = RpcResult<HashMap<AuthorityId, EpochAuthorship>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn into_rpc(self) -> RpcModule<Self> { ... } }
Expand description

Server trait implementation for the BabeApi RPC API.

Required Methods§

Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore.

Provided Methods§

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

Implementors§