eth_unsubscribe - Ethereum

eth_unsubscribe. Cancels an existing subscription so that no further events are sent

eth_unsubscribe - ethereum [Value: 10CU]
Cancels an existing subscription so that no further events are sent.
Use cases

Use cases

  • Stop receiving updates for specific blockchain events
  • Unsubscribe from new block notifications
  • Cancel pending transaction monitoring subscription
Constraints

Constraints

  • Requires valid subscription ID for unsubscription
  • Node must support the eth_unsubscribe method
  • Continuous connection needed until unsubscription confirmation
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
wscat -c wss://eth.drpc.org \ 
{"id":1,"jsonrpc":"2.0","method":"eth_unsubscribe","params":["0xe9549ac54eeec07f"]}
Copy
Response
200
{
    "jsonrpc":"2.0",
    "id":1,
    "result":true
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersstring
string
subscription_idstring
A subscription ID that was previously generated in a eth_subscribe RPC request.

Response

200

Response params

object
idinteger
jsonrpcstring
resultboolean
A boolean value indicating if the subscription was canceled successfully.