Skip to content

Commit

Permalink
RPC: Add MinContextSlot to GetMultipleAccountsWithOpts (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley authored Oct 10, 2024
1 parent 055e733 commit 218180d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpc/getMultipleAccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func (cl *Client) GetMultipleAccountsWithOpts(
return nil, errors.New("cannot use dataSlice with EncodingJSONParsed")
}
}
if opts.MinContextSlot != nil {
obj["minContextSlot"] = *opts.MinContextSlot
}
if len(obj) > 0 {
params = append(params, obj)
}
Expand Down

0 comments on commit 218180d

Please sign in to comment.