Links

eth_unsubscribe

Cancels an existing subscription so that no further events are sent.

Parameters:

subscription name - string, same as previously returned from an eth_subscribe call
params: [
"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",
]

Returns:

true if a subscription was successfully cancelled, or false if no subscription existed with the given ID.
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
mainnet
testnet
curl https://mainnet.hedera.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}'
curl https://testnet.hedera.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}'