Skip to content

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
Member

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

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.

2 participants