2 unstable releases
new 0.2.0 | Jan 10, 2025 |
---|---|
0.1.0 | Sep 18, 2024 |
#671 in Magic Beans
137 downloads per month
330KB
545 lines
polkadot-du
Investigate storage size of Substrate chains.
Install with:
cargo install polkadot-du
pdu --help
Example
First acquire a state snapshot. We are going to use the People Rococo chain, since it is rather small. You will need the try-runtime-cli for this and a full or archive node to download the state from:
try-runtime create-snapshot --uri wss://sys.ibp.network:443/statemint ah-polkadot.snap
Then run the analysis:
cargo run -r -- info --snap ah-polkadot.snap --rpc wss://sys.ibp.network:443/statemint
The results will be a bit boring for such a small network, but for a larger one - eg Kusama - it
could look like this. The results will also be written into a JSON file named kusama_storage.json
.
You can download this snapshot to try it.
You can also zoom in on a specific pallet:
cargo run -r -- info --snap ah-polkadot.snap --rpc wss://sys.ibp.network:443/statemint --pallet System
Again for Kusama:
License
GPLv3 ONLY, see LICENSE file for details.
License: GPL-3.0
Dependencies
~96–135MB
~2.5M SLoC