eth_unsubscribe

Subscriptions are cancelled with a regular RPC call with eth_unsubscribe as method and the subscription id as first parameter. It returns a bool indicating if the subscription was cancelled successful

Request

curl https://tn.henesis.io/ethereum/mainnet?clientId=<clientId> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_unsubscribe","params":["0x9cef478923ff08bf67fde6c64013158d"],"id":1}'

Response

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

Parameters

subscriptionId - subscription id.

Returns

Boolean - true if the filter was successfully unsubscribed, otherwise false

Reference

​https://github.com/ethereum/go-ethereum/wiki/RPC-PUB-SUB#cancel-subscription​