Skip to content

Add new network to py-substrate-interface #286

Answered by arjanz
yeousunn asked this question in Q&A
Discussion options

You must be logged in to vote

Probably you don't need to specify a type_registry_preset, if your network utilises MetadataV14. Before V14, type definitions were required to be administered manually, as described here: polkascan/py-scale-codec#94 (comment)

If the runtime is pre-V14 or there are some exotic changes to the default Substrate implementation, you will need some custom type definitions (or overrides). First you can check if a PolkadotJS type registry JSON file exists, for example for Polymesh there is one maintained here: https://github.com/PolymeshAssociation/polymesh-types/blob/main/polymesh_schema.json

Then you convert the format to match the py-scale-codec format (most different is format for Enum and St…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yeousunn
Comment options

Answer selected by yeousunn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants