2 Services
Claude edited this page 2026-04-03 12:39:53 +01:00

Ecosystem Services

All services run as Docker containers and communicate over an internal Docker network.

Chain Services

Daemon (C++ Node)

The core blockchain node. Validates blocks, serves RPC, and connects to the P2P network.

Property Value
Image lthn/chain:testnet
RPC Port 36941 (mapped to 46941)
P2P Port 36942 (mapped to 46942)
API Docs http://localhost:46943/swagger/ui
Data /data volume (LMDB)

RPC Example:

curl -s http://localhost:46941/json_rpc \
  -d '{"jsonrpc":"2.0","id":"0","method":"getinfo"}' \
  -H 'Content-Type: application/json'

Wallet RPC

CLI wallet with PoS staking enabled.

Property Value
Image lthn/chain:testnet
RPC Port 36944 (mapped to 46944)
Data /wallet volume

Block Explorer

Next.js web application showing blocks, transactions, and aliases.

Property Value
Image lthn/explorer:testnet
Port 3335
Database PostgreSQL (explorer-db)

Trade Services

Trade API

REST API for the decentralised exchange.

Property Value
Image lthn/trade-api:testnet
Port 3336
Database PostgreSQL (trade-db)

Trade Frontend

Next.js DEX web interface.

Property Value
Image lthn/trade-frontend:testnet
Port 3338 (internal 30289)

Mining Pool

ProgPoWZ stratum mining pool with web interface.

Property Value
Image lthn/pool:testnet
Stratum 5555
SSL 7777
API + Dashboard 2117
Cache Redis (pool-redis)

Lethean Name Service (LNS)

DNS resolver and HTTP API for .lthn domain names.

Property Value
Image lthn/lns:testnet
HTTP API 5553
DNS 5354 (TCP + UDP)

Query a name:

dig @localhost -p 5354 example.lthn A
curl -s http://localhost:5553/api/names

Documentation

Static documentation site.

Property Value
Image lthn/docs:testnet
Port 8099