Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.2 KB

File metadata and controls

38 lines (26 loc) · 1.2 KB

diff — Historical State Comparison

Compare chain state between two blocks. Useful for tracking changes in portfolio value, subnet metrics, or network-wide statistics over time.

Subcommands

diff portfolio

Compare portfolio between two blocks.

agcli diff portfolio --from-block 3900000 --to-block 4000000 [--address SS58]

diff subnet

Compare subnet state between two blocks.

agcli diff subnet --netuid 1 --from-block 3900000 --to-block 4000000

diff network

Compare network-wide stats between two blocks.

agcli diff network --from-block 3900000 --to-block 4000000

Requires --network archive for blocks beyond the ~256 block pruning window.

Source Code

agcli handler: src/cli/block_cmds.rshandle_diff() at L147, subcommands: Portfolio L155, Subnet L249, Network L352

On-chain: read-only queries at two block heights — compares System::Account, stake maps, subnet metrics, etc.

Related Commands

  • agcli block info --number N — See block details
  • agcli subnet cache-diff — Compare cached metagraph snapshots
  • agcli explain --topic diff — How diff works