pub async fn submit_extrinsic<E: Encode>(
        &self,
        extrinsic: E,
    ) -> Result<T::Hash, Error> {
        let bytes: Bytes = extrinsic.encode().into();
        let params = &[to_json_value(bytes)?];
        let xt_hash = self
            .client
            .request("author_submitExtrinsic", params)
            .await?;
        Ok(xt_hash)
    }
/// Create and submit an extrinsic and return corresponding Hash if successful
Create and submit an extrinsic and return corresponding Hash if successful
Create and submit an extrinsic and return corresponding Hash if successful
pub async fn submit_extrinsic<E: Encode>(
        &self,
        extrinsic: E,
    ) -> Result<T::Hash, Error> {
        let bytes: Bytes = extrinsic.encode().into();
        let params = &[to_json_value(bytes)?];
        let xt_hash = self
            .client
            .request("author_submitExtrinsic", params)
            .await?;
        Ok(xt_hash)
    }
pub async fn submit_extrinsic < E : Encode > ( & self , extrinsic : E , ) -> Result < T :: Hash , Error > { let bytes : Bytes = extrinsic . encode ( ) . into ( ) ; let params = & [ to_json_value ( bytes ) ? ] ; let xt_hash = self . client . request ( " " , params ) . await ? ; Ok ( xt_hash ) }
Create and submit an extrinsic and return corresponding Hash if successful
Create and submit an extrinsic and return corresponding Hash if successful
&self
extrinsic
E
&self
extrinsic
E