Skip to main content

Overview

BlockDB is a logical multi-model database built for blockchain data. It manages MySQL-protocol OLTP databases underneath, and exposes ready-to-use on-chain semantic tables (Block tables) in its logical layer.

Core capabilities

  • High-performance online tables: BlockDB constrains and optimizes read/write access to the underlying OLTP tables from its logical layer, reaching throughput on the order of 1 million rows/second for blockchain workloads. This supports high-concurrency online applications as well as fast historical block backfill.
  • Logical multi-model design: One online store serves regular tables, Block State/Event tables, and Time tables. You no longer need a separate store and ETL pipeline for state, events, and time series.
  • On-chain data specialization: Query on-chain state at any block height, or subscribe to any contract’s real-time changes, without dealing with block reorgs and data management yourself.
  • Event subscription: Table-level event subscription lets you consume any upstream table’s real-time data, so your business code runs on the database’s change stream like a “virtual smart contract”.

Quickstart

Complete your first read, write, and subscription in a few steps: Go to quickstart

Learn more

Core concepts

BlockDB abstracts on-chain data processing into a small set of concepts, from the data model to writes and subscriptions.

Architecture

How BlockDB is organized as services and components.

Guides

Hands-on guides for reading, writing, subscribing, and plugging in compute.

Reference

Complete API and protocol reference.
  • API overview: All SDK interfaces grouped by table type.
  • Logical types: Type categories, formats, length limits, and index constraints.
  • Error codes: Business error codes and their gRPC status mapping.