eth_unsubscribe

Unsubscribes from a subscription using the specified subscription ID

Request
Examples
wscat -c wss://rpc.xone.org \ 
{"id":1,"jsonrpc":"2.0","method":"eth_unsubscribe","params":["0xe9549ac54eeec07f"]}
Response
200 OK
{
    "jsonrpc":"2.0",
    "id":1,
    "result":true
}

Request params

NameTypeDescription
idintegerRequest identifier
jsonrpcstringJSON-RPC version
methodstringAPI method name
Parametersstring 
subscription_idstringThe ID of the subscription to unsubscribe from

Response

200
Returns true if the subscription was successfully unsubscribed, false otherwise.
NameTypeDescription
Parametersobject 
idinteger
jsonrpcstring
resultboolean