# getMultipleAccounts

> Returns account info for up to 100 addresses in a single call.

Source: https://docs.constant-k.com/rpc/http/getmultipleaccounts/

`getMultipleAccounts` batches up to 100 `getAccountInfo` lookups into one round trip, returning results in the same order as the input addresses.

Every result comes from the same bank slot, giving a consistent snapshot across related accounts.

- Transport: HTTP, JSON-RPC 2.0 `POST` to `https://rpc-newyork.constant-k.com/?api-key=YOUR_API_KEY` (New York) or `https://rpc-frankfurt.constant-k.com/?api-key=YOUR_API_KEY` (Frankfurt) or `https://rpc-amsterdam.constant-k.com/?api-key=YOUR_API_KEY` (Amsterdam). The key also works as an `x-api-key` header.
- Category: Accounts
- Availability: Operator and above
- Rate limits: Free not available · Operator 50/s · Blade Runner 200/s · Nexus 500/s

## Parameters

`params` is a positional JSON array, in this order:

- `addresses` (string[], required, max 100): Up to 100 addresses to look up, base-58 encoded.
- `config` (object, optional): Optional configuration.
  - `commitment` (string, optional, one of `finalized`, `confirmed`, `processed`, default `"finalized"`): Bank state to read the accounts from.
  - `encoding` (string, optional, one of `base58`, `base64`, `base64+zstd`, `jsonParsed`, default `"base58"`): How to encode each account's `data`. Same rules as `getAccountInfo`: `base58` fails for accounts over 129 bytes.
  - `dataSlice` (object, optional): Return only a byte range of each account's `data`. Not valid with `jsonParsed`.
    - `offset` (integer, required)
    - `length` (integer, required)
  - `minContextSlot` (integer, optional): Minimum slot the node must have processed before answering.

## Result

- `result` (object, optional): Accounts wrapped with context, in the same order as the input addresses.
  - `context` (object, required)
    - `slot` (integer, optional)
    - `apiVersion` (string, optional)
  - `value` ((object | null)[], required): One entry per input address, in order. An entry is null if that account doesn't exist.

## Example: Get the USDC and Wrapped SOL mint accounts together

Request:

```bash
curl "https://rpc-newyork.constant-k.com/?api-key=YOUR_API_KEY" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getMultipleAccounts",
    "params": [
      [
        "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "So11111111111111111111111111111111111111112"
      ],
      { "encoding": "jsonParsed" }
    ]
  }'
```

Response:

```json
{
  "jsonrpc": "2.0",
  "result": {
    "context": {
      "apiVersion": "4.3.0-rc.0",
      "slot": 447947009
    },
    "value": [
      {
        "data": {
          "parsed": {
            "info": {
              "decimals": 6,
              "freezeAuthority": "7dGbd2QZcCKcTndnHcTL8q7SMVXAkp688NTQYwrRCrar",
              "isInitialized": true,
              "mintAuthority": "BJE5MMbqXjVwjAF7oxwPYXnTXDyspzZyt4vwenNw5ruG",
              "supply": "7684484927720180"
            },
            "type": "mint"
          },
          "program": "spl-token",
          "space": 82
        },
        "executable": false,
        "lamports": 534633977876,
        "owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
        "rentEpoch": 18446744073709552000,
        "space": 82
      },
      {
        "data": {
          "parsed": {
            "info": {
              "decimals": 9,
              "freezeAuthority": null,
              "isInitialized": true,
              "mintAuthority": null,
              "supply": "0"
            },
            "type": "mint"
          },
          "program": "spl-token",
          "space": 82
        },
        "executable": false,
        "lamports": 1831505224699,
        "owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
        "rentEpoch": 18446744073709552000,
        "space": 82
      }
    ]
  },
  "id": 1
}
```

## Notes

- Maximum 100 addresses per call — split larger batches client-side.
- Not available on the Free plan.
- The Wrapped SOL mint's `supply` field reads 0 regardless of how much is wrapped, since wrapped SOL is tracked via each token account's lamport balance, not the mint's supply counter.

