RBudzynski's picture
Upload 5 files
23c932c verified
metadata
license: cc-by-nc-4.0
tags:
  - ethereum
  - evm
  - blockchain
  - cryptocurrency
  - crypto
  - onchain-data
  - tabular
  - timeseries
  - datasets
  - pandas
  - polars
  - duckdb
pretty_name: BlockDB Liquidity Pools - Sample
size_categories:
  - 10M<n<100M

Sample Notice

This dataset contains a small sample of the full BlockDB Liquidity Pools dataset.
It is provided for evaluation, research, and interoperability testing only.

If you need full historical coverage, real-time streaming, or end-of-day (EOD) exports please contact us directly:

πŸ“§ support@blockdb.io
🌐 https://www.blockdb.io

Dataset Overview

Canonical list of liquidity pools across all supported DEXes. Each row represents a unique pool with its configuration (exchange, type, tokens, factory) and identifiers (contract address for v2/v3-style pools, pool_id for v4-style pools).

This table serves as the single source of truth for pool identity; child time-series tables (reserves, swaps, yields) reference pools by their pool_uid.

Chains and Coverage

ETH, BSC, Base, Arbitrum, Unichain, Avalanche, Polygon, Celo, Linea, Optimism (others on request). Full history from chain genesis; reorg-aware real-time ingestion and updates.

Schema

List of columns exactly as delivered:

β€’	pool_uid BYTEA – Unique pool identifier derived from address or pool_id (primary key)
β€’	exchange_id INTEGER – Exchange/DEX identifier
β€’	type_id INTEGER – Pool type identifier (FK to liquidity_pool_types)
β€’	block_number BIGINT – Block of the log attributed as the genesis/recognition point
β€’	block_time TIMESTAMPTZ – UTC timestamp when the block was mined
β€’	tx_index INTEGER – Transaction index within the block
β€’	log_index INTEGER – Log index within the block
β€’	factory BYTEA – 20-byte DEX factory/pool-manager address
β€’	tokens BYTEA[] – Array of 20-byte token addresses in the pool
β€’	contract_address BYTEA – 20-byte address for v2/v3-style pools (nullable for id-only v4)
β€’	pool_id BYTEA – 32-byte identifier for v4-style pools (nullable for v2/v3)
β€’	pairnum NUMERIC(6) – Pair number, if applicable
β€’	asset_managers BYTEA[] – Array of asset manager addresses, if applicable
β€’	amp NUMERIC(6) – Amplification parameter for stable pools
β€’	weights NUMERIC(6,5)[] – Token weights (0..1) for weighted pools
β€’	tick_spacing SMALLINT – Tick spacing for concentrated liquidity pools
β€’	_tracing_id BYTEA – Tracing ID of this pool record
β€’	_genesis_tracing_ids BYTEA[] – Tracing IDs of the genesis records leading to this pool record
β€’	_parent_tracing_ids BYTEA[] – Tracing IDs of the parent records leading to this pool record
β€’	_created_at TIMESTAMPTZ – Record creation timestamp
β€’	_updated_at TIMESTAMPTZ – Record last update timestamp

Notes

β€’	At least one of contract_address or pool_id is always populated.
β€’	Indexes on block_number, factory, type_id, (factory, type_id), and tokens (GIN) support fast lookups.
β€’	Binary values can be rendered as hex via encode(column, 'hex') in SQL for display or downstream joins.

Lineage

Each pool record includes deterministic _tracing_id, _genesis_tracing_ids, and _parent_tracing_ids, providing:

β€’	Provenance tracking from raw logs to pool discovery
β€’	Reproducible analytics and signal extraction
β€’	Cross-system consistency checks (RPC vs. indexers vs. internal warehouses)

Common Use Cases

β€’	Building DEX pool registries across multiple protocols
β€’	Pool discovery and new listing detection
β€’	Foundation for swap, reserves, and yield analytics
β€’	Cross-DEX liquidity analysis and comparison

Quality

β€’	Verifiable lineage: deterministic cryptographic hashes per row
β€’	Reorg-aware ingestion: continuity and consistency across forks
β€’	Complete historical coverage: from chain genesis to present