hyperliquid-sdk icon indicating copy to clipboard operation
hyperliquid-sdk copied to clipboard

`GRPCStream` is missing `start_block` support in `StreamSubscribe`

Open MikeLuDev opened this issue 7 months ago • 0 comments

Overview

  • hypercore-grpc-examples defines a start_block, allowing a client to resume streaming from a specific block after a disconnect
  • The SDK's bundled pro definitions skips field 2 entirely
  • As a result, GRPCStream always starts from the live tip and there is no way to resume from a known block after reconnection or a gap.

Expectation

This is confusing - which of these repositories is correct? Is start_block supported by Quicknode for gRPC subscriptions?

  • Either there should be an explicit callout re: why start_block is omitted from the Rust SDK
  • OR support should be added for start_block in this repository
  • OR references to start_block should be removed in hypercore-grpc-examples

Suggested fix (if supported)

  • Add uint64 start_block = 2; to StreamSubscribe
  • Add start_block: Option<u64> to GRPCSubscriptionInfo
  • Populate the field when building StreamSubscribe in stream_data()
  • Expose it on subscription methods or as an optional param on existing methods

MikeLuDev avatar Apr 30 '26 21:04 MikeLuDev