Cancels a subscription of a given ID.
wss://api.zan.top/node/ws/v1/arb/one/{apiKey}
Request Parameters
- SUBSCRIPTION ID - [Required] The subscription ID, which is the result returned from eth_subscribe.
Response
The unsubscription result.
Result Fields
Examples
Example Requests
## JSON-RPC over WSS
## Replace {apiKey} with the API key you obtained from the ZAN dashboard.
## You can also replace the mainnet with any other supported networks.
wscat -c wss://api.zan.top/node/ws/v1/arb/one/{apiKey}
> {"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["87be5b00-608c-45fd-a66a-f5df5e5508d3"]}
Example Responses
{
"result": false,
"session": "783bc470-82f7-4d60-9716-c1cc00189af4",
"id": 1,
"jsonrpc": "2.0"
}