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
Your Helius API key. You can get one for free in the dashboard .
Body
Hide TransactionSubscribeFilter
Include or exclude vote-related transactions.
Include or exclude transactions that failed.
Filter updates to a specific transaction by its signature.
List of accounts to receive transaction updates for. A transaction must include at least one of these accounts. Supports up to 50,000 addresses.
List of accounts to exclude from transaction updates. Supports up to 50,000 addresses.
List of accounts that must all be included in a transaction for it to match. Supports up to 50,000 addresses.
Show TransactionSubscribeOptions
Commitment level for fetching data. Can be processed, confirmed, or finalized.
Encoding format for the returned data. Can be base58, base64, or jsonParsed.
Level of detail for the returned transaction data. Can be full, signatures, accounts, or none.
Whether to include reward data in the updates.
maxSupportedTransactionVersion
The highest transaction version to receive updates for. Set to 0 to get both legacy and versioned transactions. Required when transactionDetails is set to "accounts" or "full".
Response
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
}