This is the documentation portal for all Polkadot and Substrate related tools and libraries in the polkadot-js family of repos.
Creative Commons Zero v1.0 Universal
164
stars
199
forks
source link
How to extract and parse runtime APIs from the metadata? #477
Open
decentration opened 2 months ago
I am trying to find the correct way to parse
api.call.metadata.metadata()
so i can automatically render the "Runtime Calls" for the selected chain.I am trying to get the runtime calls from the runtime metadata...
to convert the hex to string i naively flatten the object to a string, which makes it a big challenge to parse...
if i use the above, and try and decode the hex to string, i get this:
how can i decode the metadata.metadata so that it is parsable?
Here is also the substrate stack exchange issue.