Skip to content

Add changedSinceSlot on account fetch operations#392

Open
cloakd wants to merge 5 commits intosolana-foundation:mainfrom
cloakd:changed_since_slot
Open

Add changedSinceSlot on account fetch operations#392
cloakd wants to merge 5 commits intosolana-foundation:mainfrom
cloakd:changed_since_slot

Conversation

@cloakd
Copy link
Copy Markdown
Contributor

@cloakd cloakd commented Apr 13, 2026

FluxRPC & Helius both offer changedSinceSlot arg for account fetch calls - this significantly reduces the gPA data loads needed for keeping 3rd party services in sync as incremental sync can be done rather than fetching full account state data.

Especially useful for large programs such as PumpFun (most RPCs disallow a full gPA on this program now)

@cloakd cloakd changed the title Add Changed since slot Add changedSinceSlot on account fetch operations Apr 13, 2026
@cloakd
Copy link
Copy Markdown
Contributor Author

cloakd commented Apr 29, 2026

Updated to keep up with changes on base branch.

Copy link
Copy Markdown
Contributor

@sonicfromnewyoke sonicfromnewyoke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like this improvement, becase there are devs who use comercial RPCs.

the only what i'd like to ask you - adding some extra description on who supports those (like FluxRPC) fields

Comment thread rpc/getAccountInfo.go Outdated
Comment thread rpc/types.go
Filters []RPCFilter `json:"filters,omitempty"`

// Return only the accounts that have changed since this slot
ChangedSinceSlot *uint64 `json:"changedSinceSlot,omitempty"`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same description should be here, i believe

Co-authored-by: Sonic <sonic.from.new.yoke@gmail.com>
@cloakd
Copy link
Copy Markdown
Contributor Author

cloakd commented Apr 29, 2026

Sure, typically we dont over document when the field is self-explanatory but if its code guidelines happy to update

@cloakd
Copy link
Copy Markdown
Contributor Author

cloakd commented Apr 29, 2026

@sonicfromnewyoke should be good to go now!

@sonicfromnewyoke
Copy link
Copy Markdown
Contributor

@sonicfromnewyoke should be good to go now!

commit-lint (used for the changelog) and golangci-lint (used for the code quality) are failing

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