RPC: distinguish between GetMultipleAccounts and GetMultipleAccountsWithOpts
This commit is contained in:
parent
5c43d3e89e
commit
529897bd00
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue