Skip to main content
Cancels a subscription created by eth_subscribe. After cancellation, no further notifications are sent for that subscription ID.

Parameters

subscriptionId
string
required
The hex-encoded subscription ID returned by eth_subscribe.

Returns

result
boolean
true if the subscription was successfully cancelled. false if the subscription ID was not found (e.g., already cancelled or never existed).

Example

{
  "jsonrpc": "2.0",
  "method": "eth_unsubscribe",
  "params": ["0x1887ec8b9589ccad00000000000532da"],
  "id": 1
}