Skip to main content
WSS

Overview

Subscription Parameters

chain_id
number
required
Target EVM network. See the Chain enumeration for supported values.
pool_uids
string[]
Filter updates to specific BlockDB pool identifiers.
token_in_addresses
string[]
Filter by input token addresses (hex strings, 20 bytes, no 0x prefix).

Message Fields

pool_uid
string
BlockDB pool identifier.
exchange_id
number
Exchange/DEX identifier.
type_id
number
Pool type identifier.
block_number
number
Block height where the swap occurred.
block_time
string
Block time (ISO-8601).
tx_index
number
Transaction index.
log_index
number
Log index.
token_in
string
Address of the input token.
token_out
string
Address of the output token.
fee_token
string
Token address the fee is denominated in.
amount_in
string
Executed input amount (raw units, integer string).
amount_out
string
Executed output amount (raw units, integer string).
fee_amount_total
string
Total fee amount in fee_token units.
fee_amount_user
string | null
User/LP share of fees (raw units, nullable).
fee_amount_protocol
string | null
Protocol share of fees (raw units, nullable).
fee_amount_extra
string | null
Extra destination share of fees (raw units, nullable).
_tracing_id
string
Row-level lineage hash for correlation.
_parent_tracing_ids
string[]
Parent lineage ids (hex).
_created_at
string
Record creation time (ISO-8601).
_updated_at
string
Record last update time (ISO-8601).

Subscription Example

Response Example

subscribe
type:object
unsubscribe
type:object
subscribe_response
type:object
unsubscribe_response
type:object
update
type:object
Last modified on April 6, 2026