Complete documentation across all 6 sections: - Getting Started (4): introduction, quick-start, registration, dns-management - Chain (5): overview, daemon-rpc, wallet-rpc, mining, aliases, hardforks - Names (4): overview, registration, dns-records, sunrise, sidechain - Services (4): dns-hosting, ssl-certificates, proxy-network, gateway-operators - API (6): overview, names, explorer, proxy, gateway, authentication - Governance (3): cic, wallet-holders, economics 28 markdown pages total, covering the full Lethean ecosystem. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.1 KiB
1.1 KiB
Explorer API
Blockchain explorer endpoints for querying blocks, transactions, aliases, and chain statistics.
Endpoints
Chain Info
GET /v1/explorer/info
Returns height, difficulty, PoS status, alias count, pool size.
Chain Statistics
GET /v1/explorer/stats
Extended stats including supply, hashrate, and block rewards.
Block by Height or Hash
GET /v1/explorer/block/{id}
Returns block header. Blocks are immutable — cached for 1 hour.
Transaction Details
GET /v1/explorer/tx/{hash}
All Aliases
GET /v1/explorer/aliases
Returns all chain aliases. Cached for 60 seconds.
Single Alias
GET /v1/explorer/alias/{name}
Real-time alias lookup (not cached).
Search
GET /v1/explorer/search/{query}
Search across blocks, transactions, and aliases.
Example
curl -s -H 'Accept: application/json' \
'https://api.lthn.io/v1/explorer/info'
{
"height": 13333,
"pow_difficulty": 532264,
"pos_difficulty": "...",
"pos_allowed": true,
"alias_count": 140,
"tx_count": 192,
"tx_pool_size": 0,
"status": "OK"
}