Messages
No examples found{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>"
}No examples foundNo examples found{
"chain_id": 123,
"dataset_id": "<string>",
"is_reorg": true,
"data": {
"pool_uid": "<string>",
"total_fee": "<string>",
"user_fee": "<string>",
"protocol_fee": "<string>",
"block_number": 123,
"_tracing_id": "<string>"
}
}Entities
Pool Fee Terms
Subscribe to real-time updates for AMM pool fee configurations.
WSS
Overview
- Dataset ID:
0212 - Liquidity Pool Fee Terms - Description: Per-pool fee configuration (total fee + split between user/LP, protocol, and extra recipients).
- Sample: Hugging Face Sample
Subscription Parameters
Filter updates to specific BlockDB pool identifiers.
Filter updates by exchange identifiers. See the DigitalExchange enumeration.
Message Fields
BlockDB pool identifier.
Exchange/DEX identifier.
Pool type identifier.
Block height where the fee-terms record is anchored.
Block time (ISO-8601).
Transaction index.
Log index.
Total fee fraction (e.g.,
0.003 = 0.30%). String to preserve NUMERIC(18,18) precision.Absolute fee fraction allocated to LPs/users (same units as
total_fee).Absolute fee fraction allocated to protocol/treasury (same units as
total_fee).Absolute fee fraction allocated to extra destinations (same units as
total_fee).Row-level lineage hash for correlation.
Parent lineage ids (hex).
Record creation time (ISO-8601).
Record last update time (ISO-8601).
Subscription Example
# Use wscat to connect and subscribe
wscat -c wss://api.blockdb.io/v1/evm/ \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-x '{"action": "subscribe", "dataset_id": "0212", "chain_id": 1, "params": {"pool_uids": ["88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000"]}}'
Response Example
{
"chain_id": 1,
"dataset_id": "0212",
"is_reorg": false,
"data": {
"pool_uid": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
"exchange_id": 1,
"type_id": 201,
"block_number": 19001234,
"block_time": "2025-12-20T12:34:56Z",
"tx_index": 7,
"log_index": 12,
"total_fee": "0.003000000000000000",
"user_fee": "0.003000000000000000",
"protocol_fee": "0.000000000000000000",
"extra_fee": "0.000000000000000000",
"_tracing_id": "0212c0ffee000000000000000000000000000000000000000000000000000001",
"_parent_tracing_ids": [
"0103c0ffee000000000000000000000000000000000000000000000000000001"
],
"_created_at": "2025-12-20T12:35:01Z",
"_updated_at": "2025-12-20T12:35:01Z"
}
}
Messages
No examples found{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>"
}No examples foundNo examples found{
"chain_id": 123,
"dataset_id": "<string>",
"is_reorg": true,
"data": {
"pool_uid": "<string>",
"total_fee": "<string>",
"user_fee": "<string>",
"protocol_fee": "<string>",
"block_number": 123,
"_tracing_id": "<string>"
}
}subscribe
type:object
unsubscribe
type:object
subscribe_response
type:object
unsubscribe_response
type:object
update
type:object
Last modified on April 6, 2026
Was this page helpful?
⌘I