File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ type GetAccountInfoOpts struct {
8585 // The minimum slot that the request can be evaluated at.
8686 // This parameter is optional.
8787 MinContextSlot * uint64
88+
89+ // Return only if the account(s) have changed since this slot
90+ ChangedSinceSlot * uint64 `json:"changedSinceSlot,omitempty"`
8891}
8992
9093// GetAccountInfoWithOpts returns all information associated with the account of provided publicKey.
@@ -135,6 +138,9 @@ func (cl *Client) getAccountInfoWithOpts(
135138 if opts .MinContextSlot != nil {
136139 obj ["minContextSlot" ] = * opts .MinContextSlot
137140 }
141+ if opts .ChangedSinceSlot != nil {
142+ obj ["changedSinceSlot" ] = * opts .ChangedSinceSlot
143+ }
138144 }
139145
140146 params := []any {account }
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ func (cl *Client) GetMultipleAccountsWithOpts(
6868 if opts .MinContextSlot != nil {
6969 obj ["minContextSlot" ] = * opts .MinContextSlot
7070 }
71+ if opts .ChangedSinceSlot != nil {
72+ obj ["changedSinceSlot" ] = * opts .ChangedSinceSlot
73+ }
7174 if len (obj ) > 0 {
7275 params = append (params , obj )
7376 }
You can’t perform that action at this time.
0 commit comments