pub trait AuthorApi<Hash, BlockHash>: 'static + Send + Sync {
    type Metadata: PubSubMetadata;
    fn submit_extrinsic(
        &self,
        extrinsic: Bytes
    ) -> Box<dyn Future<Error = Error, Item = Hash> + Send + 'static, Global>Notable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<I, A> Iterator for Box<I, A> where
    I: Iterator + ?Sized,
    A: Allocator
type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
    F: Future + Unpin + ?Sized,
    A: Allocator + 'static, 
type Output = <F as Future>::Output;
;
fn insert_key(
        &self,
        key_type: String,
        suri: String,
        public: Bytes
    ) -> Result<(), Error>;
fn rotate_keys(&self) -> Result<Bytes, Error>;
fn has_session_keys(&self, session_keys: Bytes) -> Result<bool, Error>;
fn has_key(
        &self,
        public_key: Bytes,
        key_type: String
    ) -> Result<bool, Error>;
fn pending_extrinsics(&self) -> Result<Vec<Bytes, Global>, Error>;
fn remove_extrinsic(
        &self,
        bytes_or_hash: Vec<ExtrinsicOrHash<Hash>, Global>
    ) -> Result<Vec<Hash, Global>, Error>;
fn watch_extrinsic(
        &self,
        metadata: Self::Metadata,
        subscriber: Subscriber<TransactionStatus<Hash, BlockHash>, Error>,
        bytes: Bytes
    );
fn unwatch_extrinsic(
        &self,
        metadata: Option<Self::Metadata>,
        id: SubscriptionId
    ) -> Result<bool, Error>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
    where
        Hash: 'static + Send + Sync + Serialize + DeserializeOwned,
        BlockHash: 'static + Send + Sync + Serialize
, { ... } }
Expand description

Substrate authoring RPC API

Associated Types

RPC metadata

Required methods

Submit hex-encoded extrinsic for inclusion in block.

Insert a key into the keystore.

Generate new session keys and returns the corresponding public keys.

Checks if the keystore has private keys for the given session public keys.

session_keys is the SCALE encoded session keys object from the runtime.

Returns true iff all private keys could be found.

Checks if the keystore has private keys for the given public key and key type.

Returns true if a private key could be found.

Returns all pending extrinsics, potentially grouped by sender.

Remove given extrinsic from the pool and temporarily ban it to prevent reimporting.

Submit an extrinsic to watch.

See TransactionStatus for details on transaction life cycle.

Unsubscribe from extrinsic watching.

Provided methods

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

Implementors