2 unstable releases

new 0.2.0 Jan 10, 2025
0.1.0 Sep 18, 2024

#671 in Magic Beans

Download history 18/week @ 2024-09-22 8/week @ 2024-09-29 20/week @ 2024-12-01 38/week @ 2024-12-08 14/week @ 2024-12-15 7/week @ 2024-12-22 9/week @ 2024-12-29 106/week @ 2025-01-05

137 downloads per month

GPL-3.0 license

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.

Kusama storage analysis

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:

Kusama Balances pallet

License

GPLv3 ONLY, see LICENSE file for details.

License: GPL-3.0

Dependencies

~96–135MB
~2.5M SLoC