Indexing Status
Performing SQL queries on the ENS Unigraph requires that you have the unigraph plugin activated in your ENSNode instance. Learn more
Read the indexing status snapshot for an ENSDb Writer instance from the shared ensnode.metadata table. See Connect for setup.
ensnode.
SELECT value -> 'indexingStatus' as indexing_status_snapshotFROM "ensnode".metadataWHERE ens_indexer_schema_name = 'ensindexer_0'AND key = 'indexing_metadata_context';| # | indexing_status_snapshot |
|---|---|
| 1 | |
Output matches a point in time snapshot of ENSDb result from our "Alpha" Hosted ENSNode instance. Live output depends on the configuration of your ENSNode instance and also changes that may have happened in ENS since this point in time snapshot example response was captured.
ensDb query builder and ensIndexerSchema
schema definition in the Connect example if you haven't already.
import { IndexingMetadataContextStatusCodes } from "@ensnode/ensdb-sdk";
const indexingMetadataContext = await ensDbReader.getIndexingMetadataContext();
if (indexingMetadataContext.statusCode === IndexingMetadataContextStatusCodes.Initialized) { const { indexingStatus } = indexingMetadataContext; console.log({ indexingStatus });}| # | indexingStatus |
|---|---|
| 1 | |
Output matches a point in time snapshot of ENSDb result from our "Alpha" Hosted ENSNode instance. Live output depends on the configuration of your ENSNode instance and also changes that may have happened in ENS since this point in time snapshot example response was captured.