Docs

chainHead_v1_continue - Bittensor RPC Method

Resume a paused chain head operation on Bittensor using the new JSON-RPC v2 spec.

Resumes a paused operation within an active chainHead_v1_follow subscription. Some operations (like storage queries returning large result sets) are delivered in pages. When the node pauses to apply backpressure, it sends an operationWaitingForContinue event. You must call this method to receive the next page of results.

Parameters

ParameterTypeRequiredDescription
followSubscriptionstringYesThe subscription ID from chainHead_v1_follow.
operationIdstringYesThe operation ID from the paused operation's operationWaitingForContinue event.

Response

FieldTypeDescription
resultnullAcknowledges the continue request. The next page of results will be delivered as a follow subscription notification.

Returns an error if the subscription or operation ID is invalid, or if the operation is not in a paused state.

Code Examples

Use Cases

  • Large storage queries -- When querying many storage keys via chainHead_v1_storage, the node may pause after delivering a batch. Call continue to receive the next batch.
  • Backpressure handling -- Implement proper flow control in your client by processing each batch before requesting the next one with continue.
  • Reliable data streaming -- Ensure no data is lost by acknowledging each page before the node sends the next.

Notes

  • This method is part of the new JSON-RPC v2 specification and works only within a follow subscription context.
  • Only call continue after receiving an operationWaitingForContinue event. Calling it at other times will return an error.
  • This method is experimental and may not be available on public shared RPC endpoints.