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