Trait tc_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> { ... } }

Provides rpc methods for interacting with Babe.

Required methods

fn epoch_authorship(
    &self
) -> Box<dyn Future<Item = HashMap<AuthorityId, EpochAuthorship>, Error = RpcError> + Send>
[src]

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

Loading content...

Provided methods

fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>[src]

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

Loading content...

Implementors

impl<B, C, SC> BabeApi for BabeRpcHandler<B, C, SC> where
    B: BlockT,
    C: ProvideRuntimeApi<B> + HeaderBackend<B> + HeaderMetadata<B, Error = BlockChainError> + 'static,
    C::Api: BabeRuntimeApi<B>,
    SC: SelectChain<B> + Clone + 'static, 
[src]

Loading content...