POST
curl --request POST \
  --url https://mainnet.helius-rpc.com/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getMultipleCompressedAccounts",
  "params": {
    "addresses": null,
    "hashes": [
      "1111111QLbz7JHiBTspS962RLKV8GndWFwiEaqKM",
      "1111111ogCyDbaRMvkdsHB3qfdyFYaG1WtRUAfdh"
    ]
  }
}'
{
  "context": {
    "slot": 100
  },
  "value": {
    "items": [
      {
        "address": "11111115RidqCHAoz6dzmXxGcfWLNzevYqNpaRAUo",
        "data": {
          "data": "SGVsbG8sIFdvcmxkIQ==",
          "dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
          "discriminator": 100
        },
        "hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
        "lamports": 100,
        "leafIndex": 100,
        "owner": "11111115RidqCHAoz6dzmXxGcfWLNzevYqNpaRAUo",
        "seq": 100,
        "slotCreated": 100,
        "tree": "11111115RidqCHAoz6dzmXxGcfWLNzevYqNpaRAUo"
      }
    ]
  }
}

Authorizations

api-key
string
query
required

Your Helius API key. You can get one for free in the dashboard.

Body

application/json

Response

200
application/json

Successfully retrieved multiple compressed Solana accounts in a single batch operation

The response is of type object.