Docs

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

ParameterTypeRequiredDescription
subscriptionIdstringYesThe subscription or operation ID returned when the storage query was started.

Response

FieldTypeDescription
resultbooleanIndicates 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.