programUnsubscribe RPC MethodParametersnumberLoading...Returns ResultbooleanLoading...Requestconst web3 = require("@solana/web3.js"); (async () => { const solanaConnection = new web3.Connection("https://docs-demo.solana-mainnet.quiknode.pro/", { wsEndpoint: "", }); solanaConnection.removeProgramAccountChangeListener(0); })(); import solana import asyncio from asyncstdlib import enumerate from solana.rpc.websocket_api import connect from solana.publickey import PublicKey async def main(): async with connect("") as websocket: await websocket.program_subscribe(PublicKey('22Y43yTVxuUkoRKdm9thyRhQ3SdgQS7c7kB6UNCiaczD')) first_resp = await websocket.recv() subscription_id = first_resp.result async for idx, msg in enumerate(websocket): if idx == 3: break print(msg) await websocket.program_unsubscribe(subscription_id) asyncio.run(main())wscat -c \ # wait for connection {"id":1,"jsonrpc":"2.0","method": "programUnsubscribe", "params": [0]} Response{ "jsonrpc": "2.0", "result": true, "id": 1 }Don't have an account yet?Create your QuickNode endpoint in seconds and start buildingGet started for free