# Table of Contents - [Websocket Methods | Solana Vibe Station](#websocket-methods-solana-vibe-station) - [blockSubscribe | Solana Vibe Station](#blocksubscribe-solana-vibe-station) - [accountUnsubscribe | Solana Vibe Station](#accountunsubscribe-solana-vibe-station) - [blockUnsubscribe | Solana Vibe Station](#blockunsubscribe-solana-vibe-station) - [logsSubscribe | Solana Vibe Station](#logssubscribe-solana-vibe-station) - [logsUnsubscribe | Solana Vibe Station](#logsunsubscribe-solana-vibe-station) - [accountSubscribe | Solana Vibe Station](#accountsubscribe-solana-vibe-station) - [programUnsubscribe | Solana Vibe Station](#programunsubscribe-solana-vibe-station) - [programSubscribe | Solana Vibe Station](#programsubscribe-solana-vibe-station) - [voteSubscribe | Solana Vibe Station](#votesubscribe-solana-vibe-station) - [voteUnsubscribe | Solana Vibe Station](#voteunsubscribe-solana-vibe-station) - [signatureSubscribe | Solana Vibe Station](#signaturesubscribe-solana-vibe-station) - [rootUnsubscribe | Solana Vibe Station](#rootunsubscribe-solana-vibe-station) - [rootSubscribe | Solana Vibe Station](#rootsubscribe-solana-vibe-station) - [signatureUnsubscribe | Solana Vibe Station](#signatureunsubscribe-solana-vibe-station) - [slotSubscribe | Solana Vibe Station](#slotsubscribe-solana-vibe-station) - [slotUnsubscribe | Solana Vibe Station](#slotunsubscribe-solana-vibe-station) --- # Websocket Methods | Solana Vibe Station [accountSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/accountsubscribe) [accountUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/accountunsubscribe) [blockSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/blocksubscribe) [blockUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/blockunsubscribe) [logsSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/logssubscribe) [logsUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/logsunsubscribe) [programSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/programsubscribe) [programUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/programunsubscribe) [rootSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/rootsubscribe) [rootUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/rootunsubscribe) [signatureSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/signaturesubscribe) [signatureUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/signatureunsubscribe) [slotSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/slotsubscribe) [slotUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/slotunsubscribe) [voteSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/votesubscribe) [voteUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/voteunsubscribe) [PrevioussimulateTransaction](https://docs.solanavibestation.com/developers/solana-rpc/http-methods/simulatetransaction) [NextaccountSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/accountsubscribe) --- # blockSubscribe | Solana Vibe Station This method is considered unstable and therefore is not supported on our RPC nodes. [PreviousaccountUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/accountunsubscribe) [NextblockUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/blockunsubscribe) Last updated 3 months ago --- # accountUnsubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/accountunsubscribe#post) accountUnsubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / Unsubscribe from account change notifications. This method cancels an existing account subscription identified by the subscription ID that was returned from a previous accountSubscribe call. Once unsubscribed, you will no longer receive accountNotification messages for the specified subscription. Authorizations AuthHeaderURLParameter Body application/json application/json Request object for unsubscribing from account change notifications jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `accountUnsubscribe`Possible values: `accountUnsubscribe` paramsinteger\[\] · min: 1 · max: 1Required Method parameters array containing the subscription ID to cancel Example: `[23784]` Responses 200 Unsubscription successful application/json Responseobject Response indicating the success or failure of the unsubscribe operation Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); let subscriptionId = 23784; // From previous accountSubscribe call ws.onopen = function() { // Unsubscribe from account changes ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'accountUnsubscribe', params: [subscriptionId] })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.result === true) { console.log('Successfully unsubscribed from subscription:', subscriptionId); } else if (data.error) { console.error('Unsubscribe failed:', data.error); } }; Test it 200 Unsubscription successful Copy { "jsonrpc": "2.0", "result": true, "id": 1 } [PreviousaccountSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/accountsubscribe) [NextblockSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/blocksubscribe) Last updated 2 months ago --- # blockUnsubscribe | Solana Vibe Station This method is considered unstable and therefore is not supported on our RPC nodes. [PreviousblockSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/blocksubscribe) [NextlogsSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/logssubscribe) Last updated 2 months ago --- # logsSubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/logssubscribe#post) logsSubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / Subscribe to transaction logging to receive notifications when transactions occur that match specified filter criteria. This method establishes a persistent WebSocket connection that will send real-time log notifications whenever transactions matching your filters are processed by the network. You can filter by all transactions, transactions with votes, or transactions mentioning specific accounts. Authorizations AuthHeaderURLParameter Body application/json application/json Request object for subscribing to transaction logs via WebSocket jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `logsSubscribe`Possible values: `logsSubscribe` paramsone of\[\] · min: 1 · max: 2Required Method parameters array containing the filter criteria and optional configuration object Example: `[{"mentions":["TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"]},{"commitment":"finalized"}]` Show available items Responses 101 WebSocket notification for transaction logs application/json Responseobject WebSocket notification sent when a transaction log matches the subscription filter Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); ws.onopen = function() { // Subscribe to all transaction logs (except votes) ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'logsSubscribe', params: [\ 'all',\ { commitment: 'finalized' }\ ] })); // Subscribe to Token Program logs ws.send(JSON.stringify({ jsonrpc: '2.0', id: 2, method: 'logsSubscribe', params: [\ { mentions: ['TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'] },\ { commitment: 'confirmed' }\ ] })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.method === 'logsNotification') { const { signature, err, logs } = data.params.result.value; console.log('Transaction:', signature); console.log('Status:', err ? 'Failed' : 'Success'); console.log('Logs:', logs); } else if (data.result) { console.log('Subscription ID:', data.result); } }; Test it 101 WebSocket notification for transaction logs Copy { "jsonrpc": "2.0", "method": "logsNotification", "params": { "result": { "context": { "slot": 5208469 }, "value": { "signature": "5h6xBEauJ3PK6SWCZ1PGjBvj8vDdWG3KpwATGy1ARAXFSDwt8GFXM7W5Ncn16wmqokgpiKRLuS83KUxyZyv2sUYv", "err": null, "logs": [\ "SBF program 83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri success"\ ] } }, "subscription": 24040 } } Successful transaction log notification [PreviousblockUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/blockunsubscribe) [NextlogsUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/logsunsubscribe) Last updated 2 months ago --- # logsUnsubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/logsunsubscribe#post) logsUnsubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / Unsubscribe from transaction log notifications. This method cancels an existing logs subscription identified by the subscription ID that was returned from a previous logsSubscribe call. Once unsubscribed, you will no longer receive logsNotification messages for the specified subscription. Authorizations AuthHeaderURLParameter Body application/json application/json Request object for unsubscribing from transaction log notifications jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `logsUnsubscribe`Possible values: `logsUnsubscribe` paramsinteger\[\] · min: 1 · max: 1Required Method parameters array containing the logs subscription ID to cancel Example: `[24040]` Responses 200 Unsubscription successful application/json Responseobject Response indicating the success or failure of the logs unsubscribe operation Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); let subscriptionId = 24040; // From previous logsSubscribe call ws.onopen = function() { // Unsubscribe from transaction log notifications ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'logsUnsubscribe', params: [subscriptionId] })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.result === true) { console.log('Successfully unsubscribed from logs subscription:', subscriptionId); } else if (data.error) { console.error('Unsubscribe failed:', data.error); } }; Test it 200 Unsubscription successful Copy { "jsonrpc": "2.0", "result": true, "id": 1 } [PreviouslogsSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/logssubscribe) [NextprogramSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/programsubscribe) Last updated 2 months ago --- # accountSubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/accountsubscribe#post) accountSubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / 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 AuthHeaderURLParameter Body application/json application/json Request object for subscribing to account changes via WebSocket jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `accountSubscribe`Possible values: `accountSubscribe` paramsone of\[\] · min: 1 · max: 2Required Method parameters array containing the account public key and optional configuration object Example: `["CM78CPUeXjn8o3yroDHxUtKsZZgoy4GPkPPXfouKNH12",{"commitment":"finalized","encoding":"jsonParsed"}]` Show available items Responses 101 WebSocket notification for account changes application/json Responseobject WebSocket notification sent when a subscribed account changes Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); ws.onopen = function() { // Subscribe to account changes ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'accountSubscribe', params: [\ 'CM78CPUeXjn8o3yroDHxUtKsZZgoy4GPkPPXfouKNH12',\ { commitment: 'finalized', encoding: 'jsonParsed' }\ ] })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.method === 'accountNotification') { console.log('Account changed:', data.params); } else if (data.result) { console.log('Subscription ID:', data.result); } }; Test it 101 WebSocket notification for account changes Copy { "jsonrpc": "2.0", "method": "accountNotification", "params": { "result": { "context": { "slot": 123456789 }, "value": { "data": [\ "",\ "base64"\ ], "executable": false, "lamports": 1000000000, "owner": "11111111111111111111111111111111", "rentEpoch": 361 } }, "subscription": 23784 } } Account change notification [PreviousWebsocket Methods](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods) [NextaccountUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/accountunsubscribe) Last updated 2 months ago --- # programUnsubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/programunsubscribe#post) programUnsubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / Unsubscribe from program-owned account change notifications. This method cancels an existing program subscription identified by the subscription ID that was returned from a previous programSubscribe call. Once unsubscribed, you will no longer receive programNotification messages for accounts owned by the specified program. Authorizations AuthHeaderURLParameter Body application/json application/json Request object for unsubscribing from program account change notifications jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `programUnsubscribe`Possible values: `programUnsubscribe` paramsinteger\[\] · min: 1 · max: 1Required Method parameters array containing the program subscription ID to cancel Example: `[24040]` Responses 200 Unsubscription successful application/json Responseobject Response indicating the success or failure of the program unsubscribe operation Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); let subscriptionId = 24040; // From previous programSubscribe call ws.onopen = function() { // Unsubscribe from program account change notifications ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'programUnsubscribe', params: [subscriptionId] })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.result === true) { console.log('Successfully unsubscribed from program subscription:', subscriptionId); } else if (data.error) { console.error('Unsubscribe failed:', data.error); } }; Test it 200 Unsubscription successful Copy { "jsonrpc": "2.0", "result": true, "id": 1 } [PreviousprogramSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/programsubscribe) [NextrootSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/rootsubscribe) Last updated 2 months ago --- # programSubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/programsubscribe#post) programSubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / Subscribe to a program to receive notifications when the lamports or data for an account owned by the given program changes. This method establishes a persistent WebSocket connection that will send real-time notifications whenever accounts owned by the specified program are created, modified, or deleted. You can filter results by data size, account owner, or custom criteria to only receive notifications for accounts that match your requirements. Authorizations AuthHeaderURLParameter Body application/json application/json Request object for subscribing to program account changes via WebSocket jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `programSubscribe`Possible values: `programSubscribe` paramsone of\[\] · min: 1 · max: 2Required Method parameters array containing the program ID and optional configuration object Example: `["TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",{"encoding":"jsonParsed","filters":[{"dataSize":165}],"commitment":"finalized"}]` Show available items Responses 101 WebSocket notification for program account changes application/json Responseobject WebSocket notification sent when a program account changes Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); ws.onopen = function() { // Subscribe to Token Program accounts ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'programSubscribe', params: [\ 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',\ {\ encoding: 'jsonParsed',\ filters: [{ dataSize: 165 }],\ commitment: 'finalized'\ }\ ] })); // Subscribe to System Program accounts with data size filter ws.send(JSON.stringify({ jsonrpc: '2.0', id: 2, method: 'programSubscribe', params: [\ '11111111111111111111111111111111',\ {\ encoding: 'base64',\ filters: [{ dataSize: 80 }],\ commitment: 'confirmed'\ }\ ] })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.method === 'programNotification') { const { pubkey, account } = data.params.result.value; const slot = data.params.result.context.slot; console.log(`[Slot ${slot}] Account ${pubkey} changed:`); console.log('Owner:', account.owner); console.log('Lamports:', account.lamports); console.log('Data:', account.data); } else if (data.result) { console.log('Subscription ID:', data.result); } }; Test it 101 WebSocket notification for program account changes Copy { "jsonrpc": "2.0", "method": "programNotification", "params": { "result": { "context": { "slot": 5208469 }, "value": { "pubkey": "H4vnBqifaSACnKa7acsxstsY1iV1bvJNxsCY7enrd1hq", "account": { "data": [\ "11116bv5nS2h3y12kD1yUKeMZvGcKLSjQgX6BeV7u1FrjeJcKfsHPXHRDEHrBesJhZyqnnq9qJeUuF7WHxiuLuL5twc38w2TXNLxnDbjmuR",\ "base58"\ ], "executable": false, "lamports": 33594, "owner": "11111111111111111111111111111111", "rentEpoch": 636, "space": 80 } } }, "subscription": 24040 } } Account change notification with base58 encoding [PreviouslogsUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/logsunsubscribe) [NextprogramUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/programunsubscribe) Last updated 2 months ago --- # voteSubscribe | Solana Vibe Station This method is considered unstable and therefore is not supported on our RPC nodes. [PreviousslotUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/slotunsubscribe) [NextvoteUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/voteunsubscribe) Last updated 3 months ago --- # voteUnsubscribe | Solana Vibe Station This method is considered unstable and therefore is not supported on our RPC nodes. [PreviousvoteSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/votesubscribe) [NextJito Solana RPC Methods](https://docs.solanavibestation.com/developers/jito/jito-solana-rpc-methods) Last updated 2 months ago --- # signatureSubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/signaturesubscribe#post) signatureSubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / Subscribe to receive a notification when the transaction with the given signature reaches the specified commitment level. This is a subscription to a single notification that is automatically cancelled by the server once the signatureNotification is sent. Optionally, you can also receive notifications when the signature is first received by the RPC before processing begins. The transaction signature must be the first signature from the transaction. Authorizations AuthHeaderURLParameter Body application/json application/json Request object for subscribing to signature notifications via WebSocket jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `signatureSubscribe`Possible values: `signatureSubscribe` paramsone of\[\] · min: 1 · max: 2Required Method parameters array containing the transaction signature and optional configuration object Example: `["2EBVM6cB8vAAD93Ktr6Vd8p67XPbQzCJX47MpReuiCXJAtcjaxpvWpcg9Ege1Nr5Tk3a2GFrByT7WPBjdsTycY9b",{"commitment":"confirmed","enableReceivedNotification":false}]` Show available items Responses 101 WebSocket notification for signature status application/json Responseobject WebSocket notification sent when a signature status changes. This subscription is automatically cancelled after the first notification is sent. Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); ws.onopen = function() { // Subscribe to signature confirmation const signature = "2EBVM6cB8vAAD93Ktr6Vd8p67XPbQzCJX47MpReuiCXJAtcjaxpvWpcg9Ege1Nr5Tk3a2GFrByT7WPBjdsTycY9b"; ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'signatureSubscribe', params: [\ signature,\ {\ commitment: 'finalized',\ enableReceivedNotification: true\ }\ ] })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.method === 'signatureNotification') { const { context, value } = data.params.result; const subscriptionId = data.params.subscription; if (value === 'receivedSignature') { console.log(`[Slot ${context.slot}] Transaction signature received`); } else if (value.err === null) { console.log(`[Slot ${context.slot}] Transaction confirmed successfully!`); console.log(`Subscription ${subscriptionId} automatically cancelled`); } else { console.log(`[Slot ${context.slot}] Transaction failed:`, value.err); console.log(`Subscription ${subscriptionId} automatically cancelled`); } } else if (data.result !== undefined) { console.log('Signature subscription ID:', data.result); } }; Test it 101 WebSocket notification for signature status Copy { "jsonrpc": "2.0", "method": "signatureNotification", "params": { "result": { "context": { "slot": 5207624 }, "value": { "err": null } }, "subscription": 24006 } } Successful transaction processed notification [PreviousrootUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/rootunsubscribe) [NextsignatureUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/signatureunsubscribe) Last updated 2 months ago --- # rootUnsubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/rootunsubscribe#post) rootUnsubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / Unsubscribe from root notifications. This method cancels an existing root subscription identified by the subscription ID that was returned from a previous rootSubscribe call. Once unsubscribed, you will no longer receive rootNotification messages when the validator sets new root slots. Authorizations AuthHeaderURLParameter Body application/json application/json Request object for unsubscribing from root change notifications jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `rootUnsubscribe`Possible values: `rootUnsubscribe` paramsinteger\[\] · min: 1 · max: 1Required Method parameters array containing the root subscription ID to cancel Example: `[0]` Responses 200 Unsubscription successful application/json Responseobject Response indicating the success or failure of the root unsubscribe operation Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); let subscriptionId = 0; // From previous rootSubscribe call ws.onopen = function() { // Unsubscribe from root notifications ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'rootUnsubscribe', params: [subscriptionId] })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.result === true) { console.log('Successfully unsubscribed from root notifications:', subscriptionId); } else if (data.error) { console.error('Unsubscribe failed:', data.error); } }; Test it 200 Unsubscription successful Copy { "jsonrpc": "2.0", "result": true, "id": 1 } [PreviousrootSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/rootsubscribe) [NextsignatureSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/signaturesubscribe) Last updated 2 months ago --- # rootSubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/rootsubscribe#post) rootSubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / Subscribe to receive notification anytime a new root is set by the validator. This method establishes a persistent WebSocket connection that will send real-time notifications whenever the validator updates the root slot. The root represents the most recent slot that has been finalized and committed to the ledger. This subscription is useful for tracking the overall progress of the blockchain and understanding when transactions become irreversibly confirmed. Authorizations AuthHeaderURLParameter Body application/json application/json Request object for subscribing to root change notifications via WebSocket jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `rootSubscribe`Possible values: `rootSubscribe` Responses 101 WebSocket notification for root changes application/json Responseobject WebSocket notification sent when a new root is set by the validator Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); ws.onopen = function() { // Subscribe to root notifications ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'rootSubscribe' })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.method === 'rootNotification') { const rootSlot = data.params.result; const subscriptionId = data.params.subscription; console.log(`New root set at slot ${rootSlot} (subscription: ${subscriptionId})`); } else if (data.result !== undefined) { console.log('Root subscription ID:', data.result); } }; Test it 101 WebSocket notification for root changes Copy { "jsonrpc": "2.0", "method": "rootNotification", "params": { "result": 42, "subscription": 0 } } Root change notification [PreviousprogramUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/programunsubscribe) [NextrootUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/rootunsubscribe) Last updated 2 months ago --- # signatureUnsubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/signatureunsubscribe#post) signatureUnsubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / Unsubscribe from signature confirmation notification. This method cancels an existing signature subscription identified by the subscription ID that was returned from a previous signatureSubscribe call. Note that signature subscriptions are automatically cancelled by the server after sending the first notification, so this method is typically used to cancel a subscription before the transaction is confirmed or processed. Authorizations AuthHeaderURLParameter Body application/json application/json Request object for unsubscribing from signature confirmation notifications jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `signatureUnsubscribe`Possible values: `signatureUnsubscribe` paramsinteger\[\] · min: 1 · max: 1Required Method parameters array containing the signature subscription ID to cancel Example: `[24006]` Responses 200 Unsubscription successful application/json Responseobject Response indicating the success or failure of the signature unsubscribe operation Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); let subscriptionId = 24006; // From previous signatureSubscribe call ws.onopen = function() { // Unsubscribe from signature confirmation notifications ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'signatureUnsubscribe', params: [subscriptionId] })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.result === true) { console.log('Successfully unsubscribed from signature notifications:', subscriptionId); console.log('No longer waiting for transaction confirmation'); } else if (data.error) { console.error('Unsubscribe failed:', data.error); if (data.error.message === 'Subscription not found') { console.log('Subscription may have been auto-cancelled already'); } } }; Test it 200 Unsubscription successful Copy { "jsonrpc": "2.0", "result": true, "id": 1 } [PrevioussignatureSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/signaturesubscribe) [NextslotSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/slotsubscribe) Last updated 2 months ago --- # slotSubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/slotsubscribe#post) slotSubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / Subscribe to receive notification anytime a slot is processed by the validator. This method establishes a persistent WebSocket connection that will send real-time notifications whenever the validator processes a new slot. Each notification includes information about the current slot, its parent slot, and the current root slot. This subscription provides high-frequency updates about blockchain progression and is useful for monitoring network activity, tracking slot timing, and understanding the relationship between processed slots and finalized roots. Authorizations AuthHeaderURLParameter Body application/json application/json Request object for subscribing to slot processing notifications via WebSocket jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `slotSubscribe`Possible values: `slotSubscribe` Responses 101 WebSocket notification for slot processing application/json Responseobject WebSocket notification sent when a slot is processed by the validator Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); ws.onopen = function() { // Subscribe to slot notifications ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'slotSubscribe' })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.method === 'slotNotification') { const { parent, root, slot } = data.params.result; const subscriptionId = data.params.subscription; console.log(`🔗 Slot ${slot} processed (parent: ${parent}, root: ${root})`); console.log(` Subscription: ${subscriptionId}`); // Calculate slot progression const slotsFromRoot = slot - root; console.log(` Slots since root: ${slotsFromRoot}`); } else if (data.result !== undefined) { console.log('Slot subscription ID:', data.result); console.log('Now monitoring slot progression in real-time...'); } }; Test it 101 WebSocket notification for slot processing Copy { "jsonrpc": "2.0", "method": "slotNotification", "params": { "result": { "parent": 75, "root": 44, "slot": 76 }, "subscription": 0 } } Slot processing notification [PrevioussignatureUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/signatureunsubscribe) [NextslotUnsubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/slotunsubscribe) Last updated 2 months ago --- # slotUnsubscribe | Solana Vibe Station ### [](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/slotunsubscribe#post) slotUnsubscribe WebSocket Method post wss://public.rpc.solanavibestation.comSVS Public WebSocket Node Endpoint wss://public.rpc.solanavibestation.comwss://basic.rpc.solanavibestation.comwss://ultra.rpc.solanavibestation.comwss://elite.rpc.solanavibestation.comwss://epic.rpc.solanavibestation.comwss://basic.swqos.solanavibestation.comwss://ultra.swqos.solanavibestation.comwss://elite.swqos.solanavibestation.com / Unsubscribe from slot notifications. This method cancels an existing slot subscription identified by the subscription ID that was returned from a previous slotSubscribe call. Once unsubscribed, you will no longer receive slotNotification messages when new slots are processed by the validator. This is useful for stopping high-frequency slot monitoring when no longer needed. Authorizations AuthHeaderURLParameter Body application/json application/json Request object for unsubscribing from slot change notifications jsonrpcstring · enumRequired JSON-RPC protocol version Example: `2.0`Possible values: `2.0` idone ofRequired Request identifier that will be returned in the response Example: `1` stringOptional or numberOptional methodstring · enumRequired The WebSocket method name Example: `slotUnsubscribe`Possible values: `slotUnsubscribe` paramsinteger\[\] · min: 1 · max: 1Required Method parameters array containing the slot subscription ID to cancel Example: `[0]` Responses 200 Unsubscription successful application/json Responseobject Response indicating the success or failure of the slot unsubscribe operation Show properties 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 / WebSocket (Browser) WebSocket (Browser)Node.js WebSocketSolana Web3.jsRustPython Copy const ws = new WebSocket('wss://public.rpc.solanavibestation.com'); let subscriptionId = 0; // From previous slotSubscribe call ws.onopen = function() { // Unsubscribe from slot notifications ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'slotUnsubscribe', params: [subscriptionId] })); }; ws.onmessage = function(event) { const data = JSON.parse(event.data); if (data.result === true) { console.log('Successfully unsubscribed from slot notifications:', subscriptionId); console.log('No longer monitoring slot progression'); } else if (data.error) { console.error('Unsubscribe failed:', data.error); } }; Test it 200 Unsubscription successful Copy { "jsonrpc": "2.0", "result": true, "id": 1 } [PreviousslotSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/slotsubscribe) [NextvoteSubscribe](https://docs.solanavibestation.com/developers/solana-rpc/websocket-methods/votesubscribe) Last updated 2 months ago ---