archive_v1_stopStorage - Bittensor RPC Method
Stop an active archive storage subscription on Bittensor using the new JSON-RPC v2 spec.
Stops an active storage query operation that was previously started via the archive API. When you initiate a storage query through the archive namespace over a WebSocket connection, the node begins streaming results. Call this method to cancel that operation before it completes, freeing server-side resources.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
subscriptionId | string | Yes | The subscription or operation ID returned when the storage query was started. |
Response
| Field | Type | Description |
|---|---|---|
result | boolean | Indicates whether the storage 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 depending on the node implementation.
Code Examples
Use Cases
- Resource cleanup -- Stop a long-running storage stream when you have received enough data, preventing unnecessary load on the node.
- Error recovery -- Cancel a stalled or slow storage query and retry with different parameters.
- Graceful shutdown -- Clean up active 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 subscriptions you no longer need to avoid leaking server resources.
- On public shared RPC endpoints the archive namespace may be disabled.
Related Methods
archive_v1_storageDiff-- Stream storage changes between blocks (stopped witharchive_v1_storageDiff_stopStorageDiff)archive_v1_body-- Get block body from the archivechainHead_v1_stopOperation-- Stop a follow-based operationchainHead_v1_unfollow-- Stop following the chain head