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
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
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,