-
so sorry,i have a question, i want connect a substrate chain, but I only have the official types.json, i want know can it work in python? or tell me, what should I do please, thanks for much. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Basically you will have to tell the libraries how to interprete the types present in the runtime. Some pointers to help you:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
hello,excuse me,do you have doc to reformat the "type.json"? or Can I provide you with the type.json file, can you help? |
Beta Was this translation helpful? Give feedback.
-
sorry, i'm ok. thanks for much |
Beta Was this translation helpful? Give feedback.
Basically you will have to tell the libraries how to interprete the types present in the runtime.
Some pointers to help you:
MetadataV14
? Then you need to upgrade this library to version1.0.x
and the types will be included and will most likely work out of the boxMetadataV13
or less you need to specify the types yourself in a certain format. See https://github.com/polkascan/py-substrate-interface#manually-set-required-properties. Determine your starting point, this will betype_registry_preset=development
for vanilla Substrate. See #122 (comment) for more info.