#substrate #metadata #stdin #storage #cli #pallets #v14

app submeta

Decode Substrate metadata from stdin

1 unstable release

0.1.0 Jan 28, 2023

#17 in #pallets

GPL-3.0-only

7KB
80 lines

SubMeta

Minimal CLI to extract information from encoded V14 metadata.

Usage

For example show all Polkadot pallets with their storage items, you need jq installed:

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "state_getMetadata"}' https://rpc.polkadot.io:443 |\
jq '.result' -r |\
cargo run -- pallets --with-storage

Dependencies

~4.5MB
~84K SLoC