We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
polkadot_metadata.scale
I don't know how to generate such a file for my own chain, is there a special document for it?
The text was updated successfully, but these errors were encountered:
Hey @Cupnfish ,
you can get the polkadot_metadata.scale file, or really any .scale file from a running node with this unix command:
curl -sX POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"state_getMetadata", "id": 1}' localhost:9933 \ | jq .result \ | cut -d '"' -f 2 \ | xxd -r -p > ./your_scale_file.scale
Sorry, something went wrong.
Thanks 😊
Also you can use subxt-cli now, cargo run -p subxt-cli -- metadata -f bytes > metadata.scale.
subxt-cli
cargo run -p subxt-cli -- metadata -f bytes > metadata.scale
Just opened a PR #319 with that
No branches or pull requests
I don't know how to generate such a file for my own chain, is there a special document for it?
The text was updated successfully, but these errors were encountered: