Skip to main content

Overview

BlockDB WebSocket (WSS) streams provide low-latency, push-based access to real-time blockchain events. These streams mirror the schemas of our REST APIs but deliver data as it happens, with typical latencies under 150 ms.

Stream Matrix

Dataset IDCategoryStreamSummary
0101PrimitivesBlocksReal-time block headers and metadata
0102PrimitivesTransactionsExecuted transactions with gas accounting
0103PrimitivesLogsEvent logs with topic filters
0104PrimitivesContractsNew contract deployment notifications
0105PrimitivesFunction ResultsDeterministic contract call outputs
0201EntitiesERC-20 TokensNew token registration events
0203EntitiesAMM PoolsNew pool registration events
0204EntitiesFee TermsPool fee configuration updates
0301ReservesReservesReal-time pool reserve snapshots
0303SwapsSwap FeesPer-swap fee accounting
0411YieldsYieldsRolling yield/ROI predictions
0401Prices (Crypto)Spot DepthReal-time depth curves for spot pairs
0402Prices (Crypto)Impact GridPrice impact grid updates
0302Prices (Crypto)Swap PrintsExecuted swap prints
0403Prices (Crypto)OHLCReal-time OHLC candle updates
0405Prices (Crypto)VWAPVolume-weighted average prices
0502Prices (Crypto)LWAPLiquidity-weighted average prices
0601Prices (Fiat)OHLC (Fiat)OHLC in fiat quotes
0602Prices (Fiat)VWAP (Fiat)VWAP in fiat quotes

Usage

To subscribe to a stream, send a subscribe message after establishing a connection. See the Introduction for general protocol details and authentication.