archive_v1_storageDiff_stopStorageDiff - Bittensor RPC Method
Stop an active storage diff subscription on Bittensor via the archive RPC using the new JSON-RPC v2 spec.
Stops an active storage diff operation that was previously started with archive_v1_storageDiff. When a storage diff is streaming results over WebSocket, this method cancels the operation and frees server-side resources. Always call this when you no longer need the diff results to avoid unnecessary load on the node.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
subscriptionId | string | Yes | The subscription or operation ID returned when the storage diff was started. |
Response
| Field | Type | Description |
|---|---|---|
result | boolean | Indicates whether the storage diff operation was successfully stopped on the shared endpoint. |
If the subscription ID is invalid or already stopped, the method may return an error or silently succeed.
Code Examples
Use Cases
- Resource cleanup -- Cancel a long-running diff operation once you have collected the changes you need.
- Error recovery -- Stop a stalled diff and retry with adjusted parameters (e.g. a narrower key prefix or smaller block range).
- Graceful shutdown -- Clean up all active diff subscriptions before disconnecting your WebSocket client.
Notes
- This method is part of the new JSON-RPC v2 specification and operates over WebSocket connections.
- Always stop diff subscriptions you no longer need. Leaked subscriptions consume memory and bandwidth on the server.
- On public shared RPC endpoints the archive namespace may be disabled.
Related Methods
archive_v1_storageDiff-- Start a storage diff stream between two blocksarchive_v1_stopStorage-- Stop a regular storage query operationchainHead_v1_stopOperation-- Stop a follow-based operationchainHead_v1_unfollow-- Stop following the chain head entirely