pub async fn subscribe_events(&self) -> Result<EventStorageSubscription<T>, Error> {
        let keys = Some(vec![StorageKey::from(SystemEvents::new())]);
        let params = &[to_json_value(keys)?];

        let subscription = self
            .client
            .subscribe("state_subscribeStorage", params, "state_unsubscribeStorage")
            .await?;
        Ok(EventStorageSubscription::Imported(subscription))
    }
/// Subscribe to System Events that are imported into blocks.
///
/// *WARNING* these may not be included in the finalized chain, use
/// `subscribe_finalized_events` to ensure events are finalized.
Subscribe to System Events that are imported into blocks.
WARNING* these may not be included in the finalized chain, use
`subscribe_finalized_events` to ensure events are finalized.
Subscribe to System Events that are imported into blocks . WARNING * these may not be included in the finalized chain use ` subscribe_finalized_events ` to ensure events are finalized .
pub async fn subscribe_events(&self) -> Result<EventStorageSubscription<T>, Error> {
        let keys = Some(vec![StorageKey::from(SystemEvents::new())]);
        let params = &[to_json_value(keys)?];
        let subscription = self
            .client
            .subscribe("state_subscribeStorage", params, "state_unsubscribeStorage")
            .await?;
        Ok(EventStorageSubscription::Imported(subscription))
    }
pub async fn subscribe_events ( & self ) -> Result < EventStorageSubscription < T > , Error > { let keys = Some ( vec ! [ StorageKey from ( SystemEvents new ( ) ) ] ) ; let params = & [ to_json_value ( keys ) ? ] ; let subscription = self . client . subscribe ( " " , params , " " ) . await ? ; Ok ( EventStorageSubscription :: Imported ( subscription ) ) }
Subscribe to System Events that are imported into blocks.
Subscribe to System Events that are imported into blocks .
&self
&self