hyperliquid-sdk
hyperliquid-sdk copied to clipboard
`GRPCStream` is missing `start_block` support in `StreamSubscribe`
Overview
hypercore-grpc-examplesdefines astart_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,
GRPCStreamalways 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_blockis omitted from the Rust SDK - OR support should be added for
start_blockin this repository - OR references to
start_blockshould be removed inhypercore-grpc-examples
Suggested fix (if supported)
- Add
uint64 start_block = 2;toStreamSubscribe - Add
start_block: Option<u64>toGRPCSubscriptionInfo - Populate the field when building
StreamSubscribeinstream_data() - Expose it on subscription methods or as an optional param on existing methods