From 218180d22f0b52249e785fcb6788dfad31db9316 Mon Sep 17 00:00:00 2001 From: bruce-riley <96066700+bruce-riley@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:14:04 -0600 Subject: [PATCH] RPC: Add MinContextSlot to GetMultipleAccountsWithOpts (#245) --- rpc/getMultipleAccounts.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpc/getMultipleAccounts.go b/rpc/getMultipleAccounts.go index cd88d145..c8681c58 100644 --- a/rpc/getMultipleAccounts.go +++ b/rpc/getMultipleAccounts.go @@ -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) }