Skip to main content
WSS
This user-scoped stream uses (feedEpoch, globalUserSeq). Without seq, it sends a complete finalized balance snapshot, replays retained updates after that snapshot, and then joins live delivery. It also sends a complete snapshot every five seconds by default. Incremental updates default to a 300 millisecond coalescing duration.

Subscribe

Decoded event

The shape below is the inner message returned by decodeExchangeWsEnvelope or decodeExchangeWsMessage. Every binary socket message also carries an outer id: bigint, matching your subscription ID. Use it to route snapshots, replay, and live updates. See binary subscription envelopes.
Balance values use each token’s native decimal units. A snapshot has stateHead; an incremental frame has sourceBlock. Replace local balance state when snapshot=true. For an explicit replay cut R, accept the first publication when globalUserSeq > R and previousGlobalUserSeq is null or at most R. After that sparse bridge, every subsequent previousGlobalUserSeq must equal the last accepted globalUserSeq exactly.
userBalances@f subscription
type:object