🔵 Base
eth_unsubscribe

eth_unsubscribe RPC method - Base chain

It's true when the client is actively listening for network connections, otherwise false

Returns

Confirmation - True if the subscription is canceled successfully.

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

Parameters

  • subscription ID [required] ( It was previously generated in a eth_subscribe JSON-RPC request)

Request

POST https://<network>.chainnodes.org/YOUR-API-KEY
👍

Confusing? Ask blockchain developers in Chainnodes Telegram Chat (opens in a new tab)

Example

  • WSS Request with a JSON RPC call in the body
  • Replace YOUR-API-KEY with the API key from your Chainnodes.org Dashboard
  • You can use a different supported network by replacing mainnet
wscat \
    -c wss://mainnet.chainnodes.org/YOUR-API-KEY
 
>{"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x44567e1f7aa50f78e15c1a93dd9cbfd3"]}

JSON-RPC Base API Documentation by CHAINNODES is based on Reth node client. Contact us if you are interested in specific methods that are only available on geth, besu, Nethermind or Erigon