Messages
No examples found{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>"
}{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>",
"status": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"retryable": true
}
}{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>",
"status": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"retryable": true
}
}{
"chain_id": 123,
"dataset_id": "<string>",
"is_reorg": true,
"data": {
"pool_uid": "<string>",
"tvl_usd": "<string>",
"block_number": 123,
"_tracing_id": "<string>"
}
}TVL
TVL USD
Subscribe to real-time pool TVL snapshots in USD.
WSS
/
Overview
- Dataset ID:
0701 - Liquidity Pool TVL (USD) - Description: Pool TVL (Total Value Locked) snapshots in USD, computed from reserves multiplied by fiat prices. Grain: one row per (pool, event triple);
pool_uid→blockdb_evm.b0211_liquidity_pools_v1. - Sample: Hugging Face Sample
Subscription Parameters
Optional filters: pool UIDs (32-byte hex, no
0x prefix).Message Fields
Pool identifier (hex).
Exchange identifier.
Pool type identifier.
Observation block.
Block time (ISO-8601).
Transaction index.
Log index.
Decimals-adjusted token amounts (decimal strings), aligned with pool token order.
Total value locked in USD (decimal string).
Lineage id (hex).
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": "0701", "chain_id": 1, "params": {}}'
Response Example
{
"chain_id": 1,
"dataset_id": "0701",
"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,
"token_amounts": [
"1250.000000000000000000",
"3950000.000000000000000000"
],
"tvl_usd": "8750000.00",
"_tracing_id": "0701c0ffee000000000000000000000000000000000000000000000000000001",
"_parent_tracing_ids": [
"0301c0ffee000000000000000000000000000000000000000000000000000001"
],
"_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>"
}{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>",
"status": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"retryable": true
}
}{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>",
"status": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"retryable": true
}
}{
"chain_id": 123,
"dataset_id": "<string>",
"is_reorg": true,
"data": {
"pool_uid": "<string>",
"tvl_usd": "<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