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
| Parameter | Type | Required | Description |
|---|---|---|---|
followSubscription | string | Yes | The subscription ID from chainHead_v1_follow. |
operationId | string | Yes | The operation ID from the paused operation's operationWaitingForContinue event. |
Response
| Field | Type | Description |
|---|---|---|
result | null | Acknowledges 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. Callcontinueto 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
continueafter receiving anoperationWaitingForContinueevent. Calling it at other times will return an error. - This method is experimental and may not be available on public shared RPC endpoints.
Related Methods
chainHead_v1_follow-- Start the follow subscriptionchainHead_v1_storage-- Storage queries that may require pagination via continuechainHead_v1_stopOperation-- Cancel an operation instead of continuing itchainHead_v1_unfollow-- Stop the entire follow subscription
chainHead_v1_call - Bittensor RPC Method
Execute a runtime API call on a block within a chain head follow subscription on Bittensor using the new JSON-RPC v2 spec.
chainHead_v1_follow - Bittensor RPC Method
Start following the chain head to receive new blocks and finality notifications on Bittensor using the new JSON-RPC v2 spec.