Repository navigation
1.13.0: mempool channel for pending Hyperliquid transactions - #25
Merged
Merged
Conversation
- WebSocket channel `mempool`: signed Hyperliquid transactions before they are included in a block, on every Hyperliquid product. Live only, served on wss://stream.0xarchive.io/ws, with the Pro, Scale and Enterprise plans. - ws.subscribeMempool(symbol?), ws.unsubscribeMempool(symbol?) and ws.onMempool(); the symbol is optional on this channel only. - STREAM_WS_URL. A client on the default endpoint refuses a mempool subscription before sending; a mempool replay is always refused. - Types MempoolItem, MempoolAction, MempoolSignature and WsMempoolData, with Zod schemas. - wsEndpoint and plans on WsChannelCapability and Capability. - Acks and data messages accept a null coin and symbol. - Version 1.13.0.
… limit State that the unfiltered stream carries the pending transactions our Hyperliquid node receives, and that unfiltered subscriptions share a server-wide capacity limit that does not apply to symbol subscriptions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
mempoolWebSocket channel: signed Hyperliquid transactions as our Hyperliquid node receives them, before they are included in a block, for every Hyperliquid product.STREAM_WS_URL(wss://stream.0xarchive.io/ws), the only endpoint that servesmempool.subscribeMempool(symbol?),unsubscribeMempool(symbol?)andonMempool, with typedMempoolItemand Zod schemas. The symbol is optional: without one the subscription receives every pending transaction our node receives.Capabilitygain optionalwsEndpointandplans, set only onmempool.forbidden.The live contract test expects the
mempoolrow in/v1/capabilities, which the API serves from today.