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

Start building today!     

Contents

signatureUnsubscribe 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.

Parameters:

  1. number - id of account Subscription to cancel

Returns:

  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/",
  });
  solanaConnection.removeSignatureListener(0);
})();
Ready to get started? Create a free account