{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "accountSubscribe",
  "params": [
    "CM78CPUeXjn8o3yroDHxUtKsZZgoy4GPkPPXfouKNH12",
    {
      "encoding": "jsonParsed",
      "commitment": "finalized"
    }
  ]
}
{
  "jsonrpc": "2.0",
  "result": 23784,
  "id": 1
}

Endpoints

Websockets are available on mainnet and devnet with the following URLs:

  • Mainnet wss://mainnet.helius-rpc.com/?api-key=<API_KEY>
  • Devnet wss://devnet.helius-rpc.com/?api-key=<API_KEY>
Websockets have a 10-minute inactivity timer; implementing health checks and sending pings every minute is heavily recommended to keep the websocket connection alive.

Authorizations

api-key
string
required

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

Body

params
array
required

Response

result
integer

Subscription id (needed to unsubscribe)

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "accountSubscribe",
  "params": [
    "CM78CPUeXjn8o3yroDHxUtKsZZgoy4GPkPPXfouKNH12",
    {
      "encoding": "jsonParsed",
      "commitment": "finalized"
    }
  ]
}
{
  "jsonrpc": "2.0",
  "result": 23784,
  "id": 1
}