Polygon API method that allows a client to unsubscribe from a specific subscription.
When a client subscribes to a particular event, the Polygon node will send updates as soon as they occur. However, in some cases, the client may no longer be interested in receiving updates for a particular event. The eth_unsubscribe
method can be used to cancel the following subscriptions:
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
string
— the ID of the subscription that you want to cancelboolean
— the boolean value indicating if the subscriptions were removed successfully. true
if removed successfully, false
if not.eth_unsubscribe
code examplesNote that subscriptions require a WebSocket connection and WebSocket cat for you to use this method in the console.
Install WebSocket cat with:
npm install -g wscat
This will remove the subscription matching the ID passed as a parameter.
Polygon API method that allows a client to unsubscribe from a specific subscription.
When a client subscribes to a particular event, the Polygon node will send updates as soon as they occur. However, in some cases, the client may no longer be interested in receiving updates for a particular event. The eth_unsubscribe
method can be used to cancel the following subscriptions:
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
string
— the ID of the subscription that you want to cancelboolean
— the boolean value indicating if the subscriptions were removed successfully. true
if removed successfully, false
if not.eth_unsubscribe
code examplesNote that subscriptions require a WebSocket connection and WebSocket cat for you to use this method in the console.
Install WebSocket cat with:
npm install -g wscat
This will remove the subscription matching the ID passed as a parameter.