You can unsubscribe event via our eth_unsubscribe service. Returns TRUE if unsubscribed successfully, otherwise FALSE.

Parameters

Params - A string array containing (required):

  • subscription ID(hex string, required) - Subscription id.

Return

Object - An object with the following fields:

  • id(integer number) - json-rpc id.
  • jsonrpc(string) - json-rpc version.
  • result(boolean) - TRUE if successfully unsubscribed, FALSE if failed.

Example

curl --location --request POST 'https://apis.blockvision.org/v1/<api key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_unsubscribe",
    "params": ["0xe071a7e76d4b60755770076b4a79a40d"],
    "id": 1
}'

Result

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