RPC: distinguish between GetMultipleAccounts and GetMultipleAccountsWithOpts

This commit is contained in:
Slavomir 2021-07-01 18:02:09 +02:00
parent 5c43d3e89e
commit 529897bd00
1 changed files with 15 additions and 0 deletions

View File

@ -14,6 +14,21 @@ type GetMultipleAccountsResult struct {
// GetMultipleAccounts returns the account information for a list of Pubkeys.
func (cl *Client) GetMultipleAccounts(
ctx context.Context,
accounts ...solana.PublicKey,
) (out *GetMultipleAccountsResult, err error) {
return cl.GetMultipleAccountsWithOpts(
ctx,
accounts,
"",
"",
nil,
nil,
)
}
// GetMultipleAccountsWithOpts returns the account information for a list of Pubkeys.
func (cl *Client) GetMultipleAccountsWithOpts(
ctx context.Context,
accounts []solana.PublicKey,
encoding EncodingType,