Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ensnode): metadata endpoint #291

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tk-o
Copy link
Contributor

@tk-o tk-o commented Feb 20, 2025

Parses prometheus metrics and reads env vars to derive metadata about ENSNode service.

TODO

  • update ENSAdmin to display indexing progress bar for each network
    • provide a human-friendly status for each network being indexed
  • update docs for / (ENSAdmin redirect) & /ponder (new path for Ponder GQL API) paths
  • provide a way to discover all API routes ENSNode supports (considering Swagger UI for Hono
Response for `GET /metadata`
{
  "name": "ensnode",
  "version": "0.0.1",
  "deps": {
    "ponder": "0.9.18"
  },
  "env": {
    "ACTIVE_PLUGINS": "base,linea",
    "DATABASE_SCHEMA": "ens",
    "ENS_DEPLOYMENT_CHAIN": "mainnet"
  },
  "runtime": {
    "networkIndexingStatus": {
      "8453": {
        "totalBlocksCount": 9069314,
        "cachedBlocksCount": 9069288,
        "lastSyncedBlock": {
          "height": 26640793,
          "timestamp": 0,
          "utc": ""
        },
        "lastIndexedBlock": {
          "height": 0,
          "timestamp": 0,
          "utc": ""
        },
        "latestSafeBlock": {
          "height": 26640830,
          "timestamp": 1740071007,
          "utc": "2025-02-20T17:03:27.000Z"
        },
        "isRealtime": false,
        "isComplete": false,
        "isQueued": false,
        "status": ""
      },
      "59144": {
        "lastSyncedBlock": {
          "height": 0,
          "timestamp": 0,
          "utc": ""
        },
        "lastIndexedBlock": {
          "height": 0,
          "timestamp": 1721932333,
          "utc": ""
        },
        "latestSafeBlock": {
          "height": 16061789,
          "timestamp": 1740071007,
          "utc": "2025-02-20T17:03:27.000Z"
        },
        "isRealtime": false,
        "isComplete": false,
        "isQueued": true,
        "status": ""
      }
    }
  }
}

Related issues

tk-o added 2 commits February 20, 2025 16:55
Parses prometheus metrics and reads env vars to derive metadata about ENSNode service
Copy link

vercel bot commented Feb 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
admin.ensnode.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2025 5:17pm
ensnode.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2025 5:17pm
ensrainbow.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2025 5:17pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant