We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4370b70 commit eac694bCopy full SHA for eac694b
2 files changed
rpc/getProgramAccounts.go
@@ -59,6 +59,9 @@ func (cl *Client) GetProgramAccountsWithOpts(
59
"length": opts.DataSlice.Length,
60
}
61
62
+ if opts.ChangedSinceSlot != nil {
63
+ obj["changedSinceSlot"] = *opts.ChangedSinceSlot
64
+ }
65
66
67
params := []any{publicKey, obj}
rpc/types.go
@@ -406,6 +406,9 @@ type GetProgramAccountsOpts struct {
406
// Filter results using various filter objects;
407
// account must meet all filter criteria to be included in results.
408
Filters []RPCFilter `json:"filters,omitempty"`
409
+
410
+ // Return only the accounts that have changed since this slot
411
+ ChangedSinceSlot *uint64 `json:"changedSinceSlot,omitempty"`
412
413
414
type GetProgramAccountsResult []*KeyedAccount
0 commit comments