Docs

chain_unsubscribeRuntimeVersion - JSON-RPC...

Cancel a subscription created by chain_subscribeRuntimeVersion (WebSocket-only).

Cancels a runtime-version subscription that was created with chain_subscribeRuntimeVersion. Provide the subscription ID returned by the original subscription call.

Code Examples

This method requires a WebSocket connection and is not available over HTTP.

WebSocket (wscat)

Bash
wscat -c wss://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY \
  -x '{
    "jsonrpc": "2.0",
    "method": "chain_unsubscribeRuntimeVersion",
    "params": ["SUBSCRIPTION_ID"],
    "id": 1
  }'

Use Cases

  • Upgrade monitor cleanup -- Stop a runtime-version watcher once your process no longer needs upgrade notifications.
  • Controlled reconnects -- Replace an existing subscription cleanly before creating a new one.

Notes

  • Use the subscription ID from chain_subscribeRuntimeVersion.
  • A successful response returns true.
  • This method is only available over WebSocket.