Skip to content

feat: adds a new subcommand to compare snapshot files with mainnet RPC#499

Closed
dvansari65 wants to merge 2 commits intosolana-foundation:mainfrom
dvansari65:feat/state-diff
Closed

feat: adds a new subcommand to compare snapshot files with mainnet RPC#499
dvansari65 wants to merge 2 commits intosolana-foundation:mainfrom
dvansari65:feat/state-diff

Conversation

@dvansari65
Copy link
Contributor

Purpose: This feature enables developers to compare a local snapshot of Solana account states

Command Path: Added surfpool state diff <SNAPSHOT_FILE> [MAINNET_URL]

This new command allows developers to compare a local Solana account snapshot file against the live mainnet. It loads a JSON snapshot, fetches the latest state for each account from mainnet RPC, and performs a detailed comparison of lamports, owner, executable status, rent epoch, and data length. The tool provides clear, formatted output highlighting differences and a summary count, essential for debugging state drift and validating local test scenarios against the real network

@dvansari65 dvansari65 changed the title featAdds a new subcommand to compare snapshot files with mainnet RPC feat: adds a new subcommand to compare snapshot files with mainnet RPC Jan 22, 2026
@lgalabru
Copy link
Collaborator

Thanks @dvansari65! That's interesting, can you explain the use case that led you to work on this feature?

@MicaiahReid
Copy link
Collaborator

Hey @dvansari65, we'll close this now as we're not quite grasping the use-case. Feel free to reopen if you think this is needed still!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants