Skip to main content


Cancel subscriptions by calling this method with the subscription ID. It returns a boolean indicating that the subscription was canceled successfully.

For Growth and Custom service plans

This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should experience a service issue or outage. See Failover protection and Enable API request forwarding for complete details.

If you would like failover protection but don't qualify under your current plan, then either self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan.


  • subscription ID: The ID of the subscription you want to unsubscribe.


  • unsubscribed flag: (boolean) True if the subscription is canceled successfully.


Replace YOUR-API-KEY with an API key from your Infura dashboard.

WebSocket connections only

Subscription methods are available for WebSocket connections only.


wscat -c wss:// -x '{"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}'


"id": 1,
"jsonrpc": "2.0",
"result": true