Function gekko_metadata::parse_jsonrpc_metadata[][src]

pub fn parse_jsonrpc_metadata<T: AsRef<[u8]>>(
    json: T
) -> Result<MetadataVersion, Error>
Expand description

Convenience function for parsing the Json RPC response returned by Substrates state_getMetadata.

Must fit the JsonRpcResponse structure.