Skip to main content

Endpoints

Enhanced WebSockets are available on mainnet and devnet:
  • 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": 420,
  "method": "transactionSubscribe",
  "params": [
    {
      "accountInclude": ["675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"]
    },
    {
      "commitment": "processed",
      "encoding": "jsonParsed",
      "transactionDetails": "full",
      "showRewards": true,
      "maxSupportedTransactionVersion": 0
    }
  ]
}
{
  "jsonrpc": "2.0",
  "result": 4743323479349712,
  "id": 420
}