Please not that this method is only for websockets
Supported on both BNB Smart Chain and opBNB Chain.
The format of a BNB Smart Chain endpoint:
wss://bsc-mainnet.nodereal.io/ws/v1/{{apiKey}}
wss://bsc-mainnet.nodereal.io/ws/v1/{{apiKey}}
The format of an opBNB Chain endpoint:
wss://opbnb-mainnet.nodereal.io/ws/v1/{{apiKey}}
wss://opbnb-testnet.nodereal.io/ws/v1/{{apiKey}}
Parameters
SUBSCRIPTION ID
Returns
boolean
, true if the subscription was cancelled successful.
Example
check out the example below:
Request
$ wscat -c wss://bsc-mainnet.nodereal.io/ws/v1/your-api-key
> {"id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}
Result
< {"jsonrpc":"2.0","id":1,"result":true}