Skip to main content
WSS
wss://stream.blockdb.io/v1/evm/
Messages
subscribe
type:object
unsubscribe
type:object
subscribe_response
type:object
unsubscribe_response
type:object
update
type:object

Description

The AMM Pools stream delivers notifications whenever a new automated market maker (AMM) pool is deployed across supported DEX protocols. Use this stream to detect new liquidity venues as they are created.

Subscription Parameters

chain_id
number
required
Target EVM network.
exchange_ids
number[]
Filter notifications to specific exchange identifiers.
pool_type_ids
number[]
Filter pools by archetype.

Message Fields

uid
string
BlockDB internal pool identifier.
contract_address
string
Pool contract address.
exchange_id
number
Exchange identifier.
tokens
string[]
Token contract addresses that compose the pool.
block_number
number
Block height containing the pool creation.
_tracing_id
string
Row-level lineage hash for correlation.

Subscription Example

# Use wscat to connect and subscribe
wscat -c wss://stream.blockdb.io/v1/evm/ \
  -H "Authorization: Bearer $BLOCKDB_API_KEY" \
  -x '{"action": "subscribe", "dataset_id": "0203", "chain_id": 1, "params": {"exchange_ids": [1, 2]}}'

Response Example

{
  "chain_id": 1,
  "dataset_id": "0203",
  "is_reorg": false,
  "data": {
    "uid": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
    "exchange_id": 1,
    "contract_address": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
    "type_id": 2,
    "tokens": [
      "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
      "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
    ],
    "block_number": 19001234,
    "block_time": "2025-12-20T12:34:56Z",
    "_tracing_id": "0203000000000000000000000000000000000001",
    "_created_at": "2025-12-20T12:35:01Z"
  }
}