pub async fn metadata_at(&self, hash: Option<T::Hash>) -> Result<Metadata, Error> {
        let params = &[to_json_value(hash)?];
        let bytes: Bytes = self.client.request("state_getMetadata", params).await?;
        let meta: RuntimeMetadataPrefixed = Decode::decode(&mut &bytes[..])?;
        let metadata: Metadata = meta.try_into()?;
        Ok(metadata)
    }
/// Fetch the metadata at a certain block hash
Fetch the metadata at a certain block hash
Fetch the metadata at a certain block hash
pub async fn metadata_at(&self, hash: Option<T::Hash>) -> Result<Metadata, Error> {
        let params = &[to_json_value(hash)?];
        let bytes: Bytes = self.client.request("state_getMetadata", params).await?;
        let meta: RuntimeMetadataPrefixed = Decode::decode(&mut &bytes[..])?;
        let metadata: Metadata = meta.try_into()?;
        Ok(metadata)
    }
pub async fn metadata_at ( & self , hash : Option < T :: Hash > ) -> Result < Metadata , Error > { let params = & [ to_json_value ( hash ) ? ] ; let bytes : Bytes = self . client . request ( " " , params ) . await ? ; let meta : RuntimeMetadataPrefixed = Decode :: decode ( & mut & bytes [ .. ] ) ? ; let metadata : Metadata = meta . try_into ( ) ? ; Ok ( metadata ) }
Fetch the metadata at a certain block hash
Fetch the metadata at a certain block hash
&self
hash
Option<T::Hash>
&self
hash
Option<T::Hash>