Trait sc_consensus_babe_rpc::BabeApi[][src]

pub trait BabeApi: Sized + Send + Sync + 'static {
    fn epoch_authorship(
        &self
    ) -> Box<dyn Future<Item = HashMap<AuthorityId, EpochAuthorship>, Error = RpcError> + Send>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... } }
Expand description

Provides rpc methods for interacting with Babe.

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

Create an IoDelegate, wiring rpc calls to the trait methods.

Implementors