accountSubscribe - Solana

accountSubscribe. Allows developers to subscribe to real-time updates on changes to a specific account

accountSubscribe - solana [Value: 10CU]
Retrieves detailed information about a specific account on the Solana blockchain.
Use cases

Use cases

  • Unsubscribe from specific log events
  • Stop receiving logs for an unneeded subscription
  • Efficiently manage active subscriptions
Constraints

Constraints

  • Requires active subscription ID
  • Immediate disconnection may lead to missed logs
  • Only valid for WebSocket connections
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
wscat -c wss://solana.drpc.org \
# wait for connection
{"id":1,"jsonrpc":"2.0","method":"logsUnsubscribe","params":[0]}
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": true
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersobject
object
Pubkeystring
The public key of the account to query, encoded as a base-58 string.
objectarray
An optional configuration object with fields to specify query behavior and data encoding.
object
commitmentstring
The level of commitment required for the query. The options include:
object
finalizedstring
The node will return the most recent block confirmed by the supermajority of the cluster as finalized, meaning the cluster has recognized this block as finalized.
confirmedstring
The node will return the most recent block that has been voted on by the supermajority of the cluster.
processedstring
The node will return its most recent block. Note that the block may not be complete.
encodingstring
The encoding format for account data. It can be one of 'base58' (slow), 'base64', 'base64+zstd', or 'jsonParsed'.

Response

200
Allows to subscribe to real-time updates on changes to a specific account

Response params

object
idinteger
jsonrpcstring
resultboolean