🟪 Polygon
eth_unsubscribe

Polygon API Documentation


eth_unsubscribe RPC method

eth_unsubscribe 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 polygon-mainnet
wscat \
    -c wss://polygon-mainnet.chainnodes.org/YOUR-API-KEY
 
>{"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x44567e1f7aa50f78e15c1a93dd9cbfd3"]}

Need RPC API keys?

Get 12.5M archival requests for free today.

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