Transform Chains
Like Tables

BlockBT rewrites dbt-core for blockchain-native ELT. Live RPC ingestion, cross-chain SQL transforms, and verifiable analyticsβ€”no warehouses needed.

3+
Chains Supported
10+
Demo Models
100%
Open Source
Cross-Chain Analytics SQL
-- models/cross_chain_market_share.sql
SELECT
  chain,
  sum(gas_used * gas_price / 1e18 * eth_usd_price) 
    AS total_volume_usd
FROM (
  SELECT 'ethereum' AS chain, gas_used, gas_price, eth_usd_price
  FROM {{ source('ethereum', 'swaps') }}
  UNION ALL
  SELECT 'solana' AS chain, gas_used, gas_price, sol_usd_price
  FROM {{ source('solana', 'swaps') }}
)
GROUP BY chain;

Key Features

Built for blockchain-native analytics

🧱

Chain-Native Ingestion

Fetch live data from 100+ chains using lightweight adapters. Works with any RPC or Subgraph endpoint.

🧠

Canonical Schema

Unified model for swaps, transfers, liquidity β€” write one query, run across all chains.

πŸ”„

Atomic Reorg Handling

BlockBT's Block-Hash Log detects and reverses reorg effects automatically.

⚑

High-Throughput Execution

Powered by Polars + DuckDB β€” vectorized SQL at 10Γ— typical ETL speed.

🌍

Cross-Chain SQL Joins

Compare Ethereum fees, Solana swaps, and Base gas costs β€” in a single query.

Who Uses BlockBT?

Real-world use cases for Web3 analytics

🏦

DeFi Protocols

Track fees, TVL, and swap volumes across chains without mirrors.

πŸ—³οΈ

DAOs & Treasuries

Generate transparent, on-chain accounting dashboards.

πŸ’Ό

CEX / Institutions

Build proof-of-reserve or compliance reports from live data.

πŸ“ˆ

Quant Funds

Stream live on-chain signals for high-frequency trading.

πŸ”

Degens / Analysts

Build Dune-style dashboards that refresh every minute β€” no warehouse.

How It Works

From SQL to insights in seconds

1

Write SQL Models

Define transformations using familiar dbt syntax with {{ source() }} and {{ ref() }} macros.

2

Live Data Ingestion

BlockBT fetches data directly from RPC endpoints. Ethereum via Infura, Solana via public RPC, and more.

3

DAG Resolution

Automatically resolves dependencies and executes models in the correct order. Parallel execution coming soon.

4

SQL Execution

DuckDB executes your SQL queries on in-memory DataFrames. Fast analytical queries with cross-chain joins.

5

JSON Output

Get results as JSON with embedded metadata. Optional proof generation and push to Dune Analytics.

Example Models

Real-world analytics for Web3

Cross-Chain Market Share

Compare Ethereum vs Solana volume and transaction market share

bbt run --select cross_chain_market_share --target eth_sol

Daily Fee Trends

Track transaction fees across chains with 7-day rolling averages

bbt run --select cross_chain_7d_trends --target eth_sol

Real-Time Activity

Monitor last 30 minutes of blockchain activity per minute

bbt run --select cross_chain_recent_30min --target eth_sol

Incremental Processing

Process only new blocks with hash-based state tracking

bbt run --select eth_incremental_fees --target eth

Get Started in 5 Minutes

Step 1

Install BlockBT

git clone https://github.com/yourusername/blockbt.git
cd blockbt
pip install -e .
Step 2

Set Your RPC Keys

# Windows CMD
set INFURA_KEY=your_infura_key
set SOLANA_API_KEY=your_solana_key

# Or use public RPCs (no key needed for Solana)
Step 3

Run Your First Model

bbt run --select cross_chain_market_share --target eth_sol --prove

Ready to transform blockchain data?

Technical Architecture

Built for performance and reliability

Layer 1: CLI

Click-based command interface. Parse arguments, validate inputs, orchestrate execution.

Layer 2: Config

YAML-based configuration. Source definitions, project settings, variable substitution.

Layer 3: Ingestion

Modular RPC adapters. Ethereum (web3.py), Solana (JSON-RPC), Polymarket (REST). Hash-based state tracking.

Layer 4: Transformation

DAG resolution (NetworkX), macro resolution, DuckDB SQL execution. Cross-chain joins.

Layer 5: Verification

Mock proofs (MVP). Real ZK proofs coming in Beta (SP1/RISC0).

Layer 6: Output

JSON core format. Optional pushes to Dune Analytics, Snowflake, IPFS, or on-chain contracts.