Skip to main content

eth_unsubscribe

Overview

The 'eth_unsubscribe' will cancel the subscription by calling this method with the subscription ID. It returns a boolean indicating that the subscription was canceled successfully.

Request

curl --request POST \
--url https://ethereum-mainnet-geth-archive.node.coinapi.io \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KEY' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_unsubscribe"
}'

Response

The method returns an array of 20-byte addresses associated with the client, formatted as hexadecimal strings.

{
"jsonrpc": "2.0",
"id": 1,
"result": []
}
  • unsubscribed flag - (boolean) True if the subscription is canceled successfully.