Crates.io | polkadot-du |
lib.rs | polkadot-du |
version | 0.1.0 |
source | src |
created_at | 2024-09-18 11:50:57.579369 |
updated_at | 2024-09-18 11:50:57.579369 |
description | PDU - Polkadot runtime storage analyzer |
homepage | |
repository | https://github.com/ggwpez/pdu |
max_upload_size | |
id | 1379142 |
size | 964,141 |
Investigate storage size of Substrate chains.
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.
You can also zoom in on a specific pallet:
cargo run --release -- --network rococo-people --pallet Balances
Again for Kusama:
GPLv3 ONLY, see LICENSE file for details.
License: GPL-3.0