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
- Unsubscribe from specific log events
- Stop receiving logs for an unneeded subscription
- Efficiently manage active subscriptions
Constraints
- Requires active subscription ID
- Immediate disconnection may lead to missed logs
- Only valid for WebSocket connections
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]}
Response
200
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Request params
idinteger
jsonrpcstring
methodstring
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 accountResponse params
object
idinteger
jsonrpcstring
resultboolean