Trait tc_consensus_babe_rpc::BabeApi [−][src]
Provides rpc methods for interacting with Babe.
Required methods
fn epoch_authorship(
&self
) -> Box<dyn Future<Item = HashMap<AuthorityId, EpochAuthorship>, Error = RpcError> + Send>
[src]
&self
) -> Box<dyn Future<Item = HashMap<AuthorityId, EpochAuthorship>, Error = RpcError> + Send>
Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore.
Provided methods
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
[src]
Create an IoDelegate
, wiring rpc calls to the trait methods.
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]
B: BlockT,
C: ProvideRuntimeApi<B> + HeaderBackend<B> + HeaderMetadata<B, Error = BlockChainError> + 'static,
C::Api: BabeRuntimeApi<B>,
SC: SelectChain<B> + Clone + 'static,
fn epoch_authorship(
&self
) -> Box<dyn Future<Item = HashMap<AuthorityId, EpochAuthorship>, Error = RpcError> + Send>
[src]
&self
) -> Box<dyn Future<Item = HashMap<AuthorityId, EpochAuthorship>, Error = RpcError> + Send>