accountSubscribe
Subscribe to an account to receive notifications when the lamports or data for a given account public key changes. Returns a subscription ID that can be used to unsubscribe. This method establishes a persistent WebSocket connection that will send real-time notifications whenever the specified account's state changes on the blockchain.
Authorizations
Body
Request object for subscribing to account changes via WebSocket
jsonrpcstring · enumRequiredExample:
JSON-RPC protocol version
2.0Possible values: idone ofRequiredExample:
Request identifier that will be returned in the response
1stringOptional
numberOptional
methodstring · enumRequiredExample:
The WebSocket method name
accountSubscribePossible values: Responses
101
WebSocket notification for account changes
application/json
200
Subscription successfully created
application/json
400
Bad Request - Invalid parameters
application/json
401
Unauthorized
text/plain
403
Forbidden
text/plain
429
Too Many Requests
text/plain
500
Internal Server Error
text/plain
post
/Last updated