Skip to content

The purpose of this project is to learn more about the SCALE codec by using it to decode Substrate metadata 🤓

License

Notifications You must be signed in to change notification settings

danforbes/decode-substrate-metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decode Substrate Metadata

Substrate-based blockchains use the SCALE codec to encode data, including the metadata that describes the chain. The purpose of this project is to learn more about the SCALE codec by using it to decode v11 of Substrate metadata.

Usage

In order to use this project, you must first install its dependencies:

$ yarn

Then, use the provided start command to fetch the latest metadata from wss://kusama-rpc.polkadot.io/ and write the raw metadata to metadata.scale & the parsed metadata to metadata.json.

$ yarn start

Source

All of the code for this project is in a single file, index.js. Take a look and see the SCALE codec in action 🤓

About

The purpose of this project is to learn more about the SCALE codec by using it to decode Substrate metadata 🤓

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published