programUnsubscribe RPC Method
Parameters
number
The account id for subscription to cancel
Returns
Result
boolean
The result will be an RpcResponse JSON object with the unsubscribed success message
Request
1const web3 = require("@solana/web3.js");2(async () => {3const solanaConnection = new web3.Connection("https://docs-demo.solana-mainnet.quiknode.pro/", {4wsEndpoint: "",5});6solanaConnection.removeProgramAccountChangeListener(0);7})();8
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free