eth_unsubscribe - Base

eth_unsubscribe. Unsubscribe from real-time updates

eth_unsubscribe - base [Value: 10CU]
Unsubscribes from a subscription using the specified subscription ID
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://base.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
The ID of the subscription to unsubscribe from

Response

200
Returns true if the subscription was successfully unsubscribed, false otherwise.

Response params

object
idinteger
jsonrpcstring
resultboolean