Please not that this method is only for websockets
Parameters
SUBSCRIPTION ID
Returns
boolean
, true if the subscription was cancelled successful.
Example
check out the example below:
Request
curl https://bsc-mainnet.nodereal.io/v1/your-api-key \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_unsubscribe","params":["0x9cef478923ff08bf67fde6c64013158d"],"id":1}'
Result
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}