Skip to content

Getting started with ENSDb

Get the whole, live onchain state of ENS in your database.

ENSDb is an open standard for bi-directional ENS integration. It defines a carefully crafted set of database schema designs, rules, and constraints for storing the ENS onchain state in a PostgreSQL database — making the data accessible from any programming language.

The ENSDb standard is implementation-agnostic, so you have options: implement your own ENSDb Writer or ENSDb Reader in any language, or use the initial reference implementations provided by ENSNode — ENSIndexer as an ENSDb Writer and ENSApi as an ENSDb Reader.

An ENSDb instance contains the live onchain state of ENS, including:

  • Domains (ENSv1 and ENSv2)
  • Registrations and renewals
  • Resolver records and text records
  • Events and ownership history
  • NFT/token data for names
  • … and more!

By building on a PostgreSQL database, ENSDb inherits world-class capabilities:

  • ACID transactions — Data integrity guarantees
  • Complex queries — Joins, aggregations, window functions
  • Scalability — Replication, sharding, connection pooling
  • Ecosystem — Mature tools, ORMs, dashboards, analytics platforms
  • Reliability — Decades of production-proven technology

ENSDb unlocks a new universe of ENS applications:

Custom APIs

Build specialized GraphQL or REST APIs tailored to your use case. Query exactly the data you need with full SQL power.

Analytics & Dashboards

Create real-time dashboards and analytics pipelines. Better than Dune — you have the live ENS state locally with sub-second query latency.

CLIs & Developer Tools

Build command-line tools for ENS operations. Query domains, and any specialized lookup — all from your terminal.

Event-Based Engines

Build reactive systems that respond to ENS state changes. Respond to registration lifecycle updates, ownership transfers, resolver updates.

Data Pipelines

Feed ENS data into your existing data infrastructure. Sync to data warehouses, trigger webhooks, populate search indexes.

AI Agents

Build AI agents that can query ENS state and perform actions based on that data.