What is preconfSubscribe?
preconfSubscribe is a Helius WebSocket method that streams Pre Confirmations — transactions delivered at the scheduled-transaction stage, before they are shredded. It is the lowest-latency transaction signal Helius offers.
The stream is not continuous. Coverage scales with the share of stake
forwarding to Helius, so expect slots with no messages — handle these gaps
gracefully. See Coverage.
preconfSubscribe is served from wss://beta.helius-rpc.com — the Helius Gatekeeper endpoint — rather than mainnet.helius-rpc.com. Authenticate with your API key as a query parameter.
The
beta hostname refers to the Gatekeeper rollout,
not the maturity of Pre Confirmations. Pre Confirmations launch on the
Gatekeeper endpoint first; it will become the standard endpoint as Helius
migrates traffic to Gatekeeper.Subscribe
Send a JSON-RPC request with thepreconfSubscribe method. The server responds with a subscription ID, then streams a notification for each scheduled transaction.
Subscribe Response
result — it is the subscription ID you use to unsubscribe. After this acknowledgement, notifications stream as binary frames (see below).
Notification payload
Notifications are delivered as binary WebSocket frames (not JSON). Each frame is a packed byte layout carrying a single scheduled transaction:| Bytes | Field | Type | Description |
|---|---|---|---|
| 0 | version | u8 | Payload schema version. Currently 1. |
| 1–8 | slot | u64 (little-endian) | The slot the transaction is scheduled in. |
| 9–16 | tx_index | u64 (little-endian) | Index of the transaction within the slot. |
| 17 | status | u8 | Transaction status: 0 = failed, 1 = success, 2 = unknown. Execution status is reported by validators on a best-effort basis — 2 when it’s unavailable. |
| 18+ | transaction | bincode(VersionedTransaction) | The scheduled transaction, bincode-serialized. |
bincode-deserialize the remaining bytes into a VersionedTransaction to read instructions, accounts, and the signature.
A pre-confirmation is an early signal, not a guarantee. The transaction has not
yet landed onchain and could still fail or be dropped. Confirm landing through
standard commitment checks before treating it as final.
Example
Unsubscribing
To stop receiving notifications, callpreconfUnsubscribe with the subscription ID returned from preconfSubscribe.
Pricing
Pre Confirmations cost 10 credits per message — one message per streamed transaction — billed from your plan. See Credits for details.Pre Confirmations is a new product and pricing is subject to change.
Related
Pre Confirmations Overview
What Pre Confirmations are and where they sit in the validator pipeline.
transactionSubscribe
Stream confirmed-commitment transactions with rich filtering.