accountUnsubscribe

Cancel an existing accountSubscribe subscription.

{
"jsonrpc": "2.0",
"id": 1,
"method": "accountUnsubscribe",
"params": [0]
}

params

integerrequired

Subscription id returned by accountSubscribe.

result

Response
{
"jsonrpc": "2.0",
"result": true,
"id": 1
}
boolean

Returns true if the subscription was removed. Returns an error if the subscription id is unknown.

Is this page helpful?

Managed by

© 2026 Solana Foundation.
All rights reserved.
Get connected