Updated on 2024-11-14 GMT+08:00

eth_unsubscribe

Introduction

This API cancels subscriptions with the subscription ID. It returns a boolean indicating that the subscription was canceled successfully. It consumes 120 CUs.

Parameter Description

Parameter

Type

Description

Subscription ID

String

The ID of the subscription you want to unsubscribe.

Return Value

true is returned if a subscription was successfully canceled, or false is returned.

Request

wscat -c wss://your-http-endpoint/v1/<API-KEY> -x '{"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}'