squid-substrate-metadata-explorerdoes exactly that. Here's an example to explore Kusama blockchain:
--archiveparameter is optional, but it speeds up the process significantly. The exploration of the Kusama network from scratch, without an archive, takes 20-30 minutes.
--outparameter. In that case, exploration will start from the last known block and thus will take much less time.
squid-substrate-typegento generate required wrappers.
typegen.jsonconfig file has the following structure:
typesBundlekey in the
typegen.jsonconfiguration file can either be: