eth_unsubscribe

Parameters

Object NameRequiredTypeDetail
SUBSCRIPTION IDStringA hex code of an integer that represents the subscription ID to cancel.
"params": [
  "0x9cef478923ff08bf67fde6c64013158d"
]

Result

true if the filter was successfully cancelled, otherwise false.

Example

🚧

eth_unsubscribe will not work on HTTP/HTTPS, since HTTP/HTTPS do not support server push notifications. Use WebSocket or IPC instead.

Request

wscat -c <your-endpoint>

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

Return

< {"jsonrpc":"2.0","id":1,"result":true}