AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     


programUnsubscribe RPC Method

The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.


  1. number - id of account Subscription to cancel


  1. Result - The result will be an RpcResponse JSON object with:

    boolean - unsubscribed success message

Code Examples:

const web3 = require("@solana/web3.js");
(async () => {
  const solanaConnection = new web3.Connection("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/", {
    wsEndpoint: "wss://sample-endpoint-name.network.quiknode.pro/token-goes-here/",
Ready to get started? Create a free account