Skip to content

Address→Hex Lookup: Slice 2 — cell status endpoint (/api/hexes/resolve) #40

Description

@tylermalin

Part of Address → Hex Lookup & Reserve (Res 4) — see docs/prd/address-hex-lookup.md. Depends on Slice 1.

Goal: GET /api/hexes/resolve?hex=<index> returns the cell's status + price + centroid.

Status values: curated-available | curated-taken | global-available | global-held | native.

Reuse

  • Curated membership: regions.json + genesis-claim-registry.ts.
  • Native block: NATIVE_HEX_SET.
  • Global holds: global-hold-store (Slice 3) — returns global-available until that lands.
  • Price: calculateGenesisListingPriceDeterministic(lat, lng, hexId) (already global).

Acceptance: correct status for a known curated cell, a taken cell, an arbitrary global cell, and a native cell.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions