Skip to content
Glyph

Glyph API

A verified Qubic indexer and read API, hosted for public use.

On this page
  1. The data path
  2. Query the public API
  3. From endpoint to record

Every Qubic query depends on a data path: which peers answered, whether their records were checked, and how much history the index keeps. Glyph API runs that path for you and exposes the result over HTTP.

The public API is at https://api.glyphq.org. It connects to Qubic peers over TCP, verifies what they return, stores normalized history in ClickHouse, and serves reads from the verified store.

The data path

The service starts with peers. It receives ticks and the records that come with them over the native TCP protocol, checks quorum vote groups, and writes a tick only after it reaches a verification tier.

  • Direct Qubic peers over the native TCP protocol
  • Quorum and data verification at ingest
  • Normalized history for reads, streams, and analytics
  • REST resources, SSE and WebSocket streams, and OpenAPI 3.1

ClickHouse holds the normalized history. The API reads that store and returns resources for identities, transactions, ticks, tokens, contracts, and network status. The same store supports analytical queries that would be slow against a live peer.

The index starts at the current epoch on its first run and moves forward. It catches up within that epoch, follows the live network, and serves reads while ingestion continues.

Query the public API

The health check and status endpoints are a quick way to confirm the service is reachable:

curl -sS https://api.glyphq.org/healthz
curl -sS https://api.glyphq.org/v1/status
curl -sS 'https://api.glyphq.org/v1/ticks?epoch=240&limit=25'

The OpenAPI document is at https://api.glyphq.org/openapi.json. The API reference is at /docs, and /status includes the live service view.

From endpoint to record

  1. 1Start with /v1/status or /healthz to check the service.
  2. 2Open /docs or /openapi.json and pick the resource you need.
  3. 3Fetch REST resources for point reads, or use the SSE and WebSocket streams for changes.
  4. 4Open the identity or transaction in Glyph Explorer when you need the linked view.

For repeated reads and historical analysis, the API is the data layer behind the explorer. The source is available in the Glyph repository if you want to follow how the service is built.

Open the API referenceThe public API surface, generated from the OpenAPI description. API statusHealth, peer, and ingestion status for the public service. Glyph API sourceThe indexer and HTTP service on GitHub.

Next steps

Use Glyph API on its own or with the rest of the toolchain.