polkascan / py-substrate-interface

Python Substrate Interface
https://polkascan.github.io/py-substrate-interface/
Apache License 2.0
240 stars 114 forks source link

How to get metadata? #223

Closed yytomives closed 2 years ago

yytomives commented 2 years ago

How to get metadata? Which interface to call to get the data of each module, each method, each annotation?

arjanz commented 2 years ago

You can start by having a look at the documentation, specifically the get_metadata* functions: https://polkascan.github.io/py-substrate-interface/#substrateinterface.SubstrateInterface.get_metadata