Explorer and Analytics APIs¶
The PQWERAI explorer (pqwexplorer) indexes the chain using read-only JSON-RPC, reconciles its totals exactly with
Core, and serves HTML pages plus a read-only JSON API.
| API | GET /api/v1/…, JSON, unauthenticated, read-only — reference |
| Etherscan-compatible API | GET /api?module=…&action=… for Etherscan clients (lookups only, no source verification) — guide; live on the public explorer; read-only /api rechecked 23 November 2026 |
| Schema | OpenAPI 3.1 · Postman collection |
| Contract test | scripts/devhub/explorer_contract_test.py: 35/35 PASS against a live index of the local testnet |
| Storage | PostgreSQL 18 in production since 18 November 2026 (unix socket only, verified copy of every table); SQLite for tests and local runs, same schema |
| Public endpoint | https://explorer.pqwerai.com (read-only; release 0.12.0, database schema 5; the explorer footer shows the running release), API at https://explorer.pqwerai.com/api/v1/; Etherscan-compatible API at https://explorer.pqwerai.com/api |
| Model pools | Pools page and /api/v1/pools, read from the off-chain pool directories (0.4.0) |
Coverage¶
| Data | Endpoint |
|---|---|
| Blocks, transactions (with receipt status and token transfers), accounts | /blocks, /block/{key}, /tx/{hash}, /address/{address} |
| ERC-20 / ERC-721 tokens | /tokens |
| Smartnode validators, finality checkpoints | /validators, /checkpoints |
| Exact supply and per-block issuance (67/18/1/9/5 on chain 20778 from block 1, incl. the Quantum Reserve and IPFS storage pool shares) | /supply, /issuance |
| GhostRider mining statistics | /mining |
| AI-market events (escrow, registry, jobs) | /ai/events |
| Indexer health, freshness, chain identity, alarms | /status |
Semantics (freshness, reorganisations, pagination, errors): Data semantics.
Run it locally¶
pip install -r explorer/requirements.txt
cd explorer
python -m pqwexplorer all --rpc http://127.0.0.1:8545 --db sqlite:explorer.db \
--genesis /etc/pqwerai/network/genesis.json --bind 127.0.0.1 --port 8089
curl -s http://127.0.0.1:8089/api/v1/status
python -m pqwexplorer reconcile --rpc http://127.0.0.1:8545 --db sqlite:explorer.db # exit 0 only if exact
To use PostgreSQL as the public deployment does, pass --db "postgresql:///pqwexplorer?host=/var/run/postgresql".
python -m pqwexplorer copy --source sqlite:explorer.db --db <postgresql DSN> moves an index into an empty database
and keeps nothing unless every table matches by row count and content digest.
The explorer source is in the PQWERAI-testnet repository (explorer/); it is not yet published separately.
Sources at 83ff5b69f0 (project repository, not public yet): explorer/README.md · explorer/openapi.yaml · scripts/devhub/explorer_contract_test.py
Found a problem? Report a documentation issue · Build testnet-20778+83ff5b69f0