Skip to content

feat: admin API #49

Description

@pthmas

Wire up ADMIN_API_KEY (currently documented but unused) and add protected endpoints. A single key configured via env var is used for all admin routes — rotated by updating the env and restarting.

  • AuthAuthorization: Bearer <ADMIN_API_KEY> middleware on all /api/admin/* routes
  • Contract verificationPOST /api/admin/contracts/:address/verify (source + compiler metadata → upsert contract_abis)
  • Address labelsPUT/DELETE /api/admin/labels/:address (table already exists, just needs endpoints)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions