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

Documentation Index

Fetch the complete documentation index at: https://www.helius.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

Request Parameters

addresses
array
Array of Solana public keys for the compressed accounts to retrieve
hashes
array
Array of data hashes identifying the compressed Solana accounts to retrieve

Authorizations

api-key
string
query
required

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

Body

application/json
jsonrpc
enum<string>
default:2.0
required

The version of the JSON-RPC protocol.

Available options:
2.0
id
string
default:1
required

An ID to identify the request.

method
enum<string>
default:getMultipleCompressedAccounts
required

The name of the method to invoke.

Available options:
getMultipleCompressedAccounts
params
object
required

Request parameters for batch retrieving multiple compressed Solana accounts data, supporting lookups by either addresses or cryptographic hashes

Example:
{
"addresses": null,
"hashes": [
"1111111QLbz7JHiBTspS962RLKV8GndWFwiEaqKM",
"1111111ogCyDbaRMvkdsHB3qfdyFYaG1WtRUAfdh"
]
}

Response

Successfully retrieved multiple compressed Solana accounts in a single batch operation

context
object
required
value
object
required