Scope the stream before you connect
An unfilteredpreconfSubscribe delivers every scheduled transaction at 10 credits each, so filter server-side and pay only for what you trade on.
failed: falsedrops transactions already known to have reverted, which you have no reason to race.regionIncludepins the stream to the region closest to your infrastructure, so a cross-region hop doesn’t eat the head start.accountIncludematches any tx referencing your target: a wallet, AMM pool, program, etc. Helius resolves address lookup tables server-side, so the filter matches even when the account is loaded through an ALT.
Connect, subscribe, and decode
preconfSubscribe is served from the Gatekeeper endpoint (wss://beta.helius-rpc.com), and notifications arrive as binary frames, not JSON.
Each frame is a fixed 18-byte prefix followed by the bincode-serialized transaction:
listener.js
Act with Sender Max
A preconfirmation only pays off if your response lands first. Send your reaction through Sender Max: the 0.001 SOL tip enters the priority tip buffer and routes across every high-speed pathway:Confirm landing and expect gaps
A preconfirmation is an early look. The transaction has not landed yet and can still fail or be dropped, so two rules apply:- Confirm through standard commitment checks (
getSignatureStatuses, or aprocessed-commitment stream) before treating either the observed transaction or your reaction as final. - Expect gaps. Coverage scales with the share of stake forwarding to Helius, so some slots produce no messages. That is expected behavior rather than a dead connection, and the keepalive ping tells the two apart. Resubscribe on close.
Related guides
preconfSubscribe API reference
Full filter semantics, region codes, and the binary payload layout
Trade on Preprocessed Transactions
Pre-execution coverage at 0.1 credits per message, on all paid plans