Hemera Doc
  • 👋Welcome
    • Introduction
    • Quick Start
    • Account Centric Indexing Protocol
      • What is Account-Centric Indexing?
      • Why "account-centric" indexing?
      • The advantages of Account-Centric Indexing
      • What's next for account-centric indexing?
      • Why create a new protocol here?
      • The Hemera Network
        • Network Roles
        • Indexers
        • Validators
        • Proprietary models & knowledge
        • Proprietary data and labels
        • Smart Contracts
        • Key roadmap items
        • Supported blockchains
      • Example Hemera use cases
        • SocialScan Explorers
        • Anti-sybil UML algorithm
        • Ethereum long term DA
        • EVM chain history preservation
        • Ecosystem AI Agents
        • User-defined AI Agents
  • 👩‍💻Developer Resources
    • Smart Contract Developers
    • EVM-compatible chains
      • Blockchain explorers
      • SocialScan explorer API doc
      • Ecosystem AI Agents
    • Dapp developers
    • User-defined Agent creators
    • AVS Operator
  • 🖥️Hemera Indexer
    • Introduction
    • Installation
      • Prerequisites
      • Install & Run
      • Export Result
    • Configurations
    • Benchmark
    • Data Class
      • Raw Data Tables
        • Blocks
        • Transactions
        • Logs
        • Traces
      • Generated Tables
        • Contract Internal Transactions
        • ERC20 Token Transfers
        • Tokens
        • ERC20 Token Holders
        • ERC721 Token Transfers
        • ERC721 Token Holders
        • ERC1155 Token Transfers
        • ERC1155 Token Holders
        • Address Coin Balances
        • Address Token Balances
        • Address Current Token Balances
        • Daily Wallet Address Stats
        • Contracts
      • Other Tables
        • Inscriptions
        • Bridges
          • L1 to L2 Transactions
          • L2 to L1 Transactions
          • Optimistic Rollup Data Availability Batches
          • Optimistic Rollup State Batches
    • Use Cases
      • UniSwap V3
        • Data Class
        • Trigger and Function
        • Run & Query
      • ENS
        • Data Class
        • Trigger and Function
        • Run & Query
      • OpenSea
        • Data Class
        • Trigger and Function
        • Run & Query
      • Deposit to L2
        • Data Class
        • Trigger and Function
        • Run & Query
      • User Profile
  • UDFs - User Defined Functions
    • Introduction
    • Components of UDFs
    • Building User Defined Functions(UDF)
    • Testing and Running UDF
    • Troubleshooting and Support
    • Supported UDFs
    • FAQs
  • 😄About us
    • The story behind building Hemera
    • Partners & Backers
    • Partnership inquiries
    • Hemera Powered Explorers
    • Active Developer Hackathons
    • Developer Contribution
  • Documentation feedback
Powered by GitBook
On this page
  1. Hemera Indexer
  2. Use Cases
  3. ENS

Data Class

To cover ENS actions and features, we created the following data classes.

  • af_ens_event: Records all events (actions) related to ENS. One event per row, one transaction can have multiple events.

  • af_ens_node_current: Records an ENS node's (name) related information. One node per row, only keep current state.

  • af_ens_address_current: Records an address's current ENS related data (primary name). One address per row, only keep current state.

Besides, since each ENS name is either an ERC721 or an ERC1155 token. The ENS job will also require data from generic data class address_token_balance.

af_ens_event

Column Name
Data Type
Note

transaction_hash

bytea

Hash of the transaction

log_index

integer

Index of the log in the transaction

transaction_index

integer

Index of the transaction within the block

block_number

bigint

Number of the block containing the transaction

block_hash

bytea

Hash of the block containing the transaction

block_timestamp

timestamp

Timestamp of when the block was mined

method

varchar

Method name associated with the event

event_name

varchar

Name of the event

from_address

bytea

Address that initiated the transaction

to_address

bytea

Address that received the transaction

base_node

bytea

Base node of the ENS name

node

bytea

Node hash of the ENS name

label

bytea

Label hash of the ENS name

name

varchar

Human-readable ENS name

expires

timestamp

Expiry time of the ENS registration

owner

bytea

Owner address of the ENS name

resolver

bytea

Resolver address associated with the ENS name

registrant

bytea

Address of the registrant of the ENS name

address

bytea

Address associated with the ENS name (forward resolution)

reverse_base_node

bytea

Base node for reverse resolution

reverse_node

bytea

Node for reverse resolution

reverse_label

bytea

Label hash for reverse resolution

reverse_name

varchar

Human-readable name for reverse resolution

token_id

numeric(100)

Token ID representing the ENS name in numeric format

w_token_id

numeric(100)

Wrapped token ID, if applicable

create_time

timestamp

Time when the record was created, defaults to current timestamp

update_time

timestamp

Time when the record was last updated, defaults to current timestamp

reorg

boolean

Flag indicating if the record was affected by a chain reorganization

ens_tnx_log_index

constraint

Primary key on (transaction_hash, log_index)

af_ens_address_current:

Column Name
Data Type
Note

address

bytea

ENS address; primary key

name

varchar

Human-readable ENS name associated with the address

reverse_node

bytea

Node for reverse resolution

create_time

timestamp

Time when the record was created, defaults to the current timestamp

update_time

timestamp

Time when the record was last updated, defaults to the current timestamp

block_number

bigint

Block number when the address was last updated or registered

af_ens_node_current

Column Name
Data Type
Note

node

bytea

Node hash of the ENS name; primary key

token_id

numeric(100)

ERC721 Token ID representing the ENS name in numeric format

w_token_id

numeric(100)

ERC1155 Wrapped token ID, if applicable

first_owned_by

bytea

Address of the first owner of the ENS name

name

varchar

Human-readable ENS name

registration

timestamp

Timestamp of when the ENS name was registered

expires

timestamp

Expiry time of the ENS registration

address

bytea

Address associated with the ENS name

create_time

timestamp

Time when the record was created, defaults to the current timestamp

update_time

timestamp

Time when the record was last updated, defaults to the current timestamp

PreviousENSNextTrigger and Function

Last updated 8 months ago

🖥️