#polkadot #pallet #storage #networking #uri #run-time #pdu

app polkadot-du

PDU - Polkadot runtime storage analyzer

1 unstable release

0.1.0 Sep 18, 2024

#9 in #pdu

Download history 121/week @ 2024-09-16 10/week @ 2024-09-23 8/week @ 2024-09-30 26/week @ 2024-12-02 34/week @ 2024-12-09

60 downloads per month

GPL-3.0 license

1MB
262 lines

polkadot-du

Investigate storage size of Substrate chains.

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 an archive node to download the state from:

try-runtime create-snapshot --uri wss://rococo-people-rpc.polkadot.io:443 rococo-people.snap

Then run the analysis:

cargo run --release -- --network rococo-people

The results will be a bit boring for such a small network, but for a larger one - eg Kusama - it could look like this. You can download this snapshot to try it.

Kusama storage analysis

You can also zoom in on a specific pallet:

cargo run --release -- --network rococo-people --pallet Balances

Again for Kusama:

Kusama Balances pallet

License

GPLv3 ONLY, see LICENSE file for details.

License: GPL-3.0

Dependencies

~23–34MB
~510K SLoC