Updated on 2023-12-15 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 10 CUs. In the dedicated edition, the throughput is 1000 per second for 8 vCPUs and 32 GB memory and 1000 per second for 16 vCPUs and 64 GB memory.

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"]}'