Xion Devnet is a multi-validator sandbox environment orchestrated with Docker Compose for local development and testing.
- Docker (version 20.10 or higher)
- Docker Compose (version 2.0 or higher)
- Make (for using Makefile commands)
The easiest way to get started is using the provided Makefile commands:
# Build devnet images with commit ID
make build
# Start devnet in background
make start
# Stop devnet (preserves state)
make stop
# Stop and remove containers
make down
# Clean up containers
make clean
# Complete purge (removes containers and shared volume)
make purge
# Start singleton validator from .env configuration
make singletonIf you prefer to use Docker Compose directly:
# Build images with commit ID
COMMIT=$(cd ./xion && git rev-parse --short HEAD) docker compose build --pull --no-cache
# Start devnet
docker compose up -d
# Stop devnet (preserves blockchain state)
docker compose stop
# Stop and remove containers
docker compose down
# View logs
docker compose logs -f
# Complete cleanup and reset
docker compose rm -f -s -v
docker volume rm -f devnet_shared
# Restart from previous height
docker compose start- NUM_VALIDATORS: Number of validator nodes (default: 3)
- XIOND_VERSION: Version tag for the xion docker image (default: latest)
- COMMIT: Git commit hash passed to build (automatically set by Makefile)
- DAEMON_NAME: Name of the daemon process (configured in .env)
Once running, the devnet exposes the following services through HAProxy:
- RPC Endpoint:
http://localhost:26657 - API Endpoint:
http://localhost:1317 - gRPC Endpoint:
http://localhost:9090 - Xion Explorer:
http://localhost:5173 - Xion Faucet:
http://localhost:3000 - Additional RPC:
http://localhost:26658
The setup includes:
- Xion validators: Configurable number of validator nodes (default: 3)
- HAProxy: Load balancer and reverse proxy
- Xion Explorer: Web interface for blockchain exploration
- Xion Faucet: Token distribution service
This devnet environment includes several Xion ecosystem components as git submodules:
- xion - Core Xion blockchain node and validator software
- xion-explorer - Web-based blockchain explorer for viewing transactions and blocks
- xion-faucet - Token distribution service for testnet XION tokens
- xion-staking - Staking interface for validators and delegators
- xion-assets - Static assets and branding resources
To update all submodules to their latest commits:
git submodule update --remote --recursive- Port conflicts: Ensure ports 26657, 1317, 9090, 5173, and 3000 are available
- Storage issues: Use
make purgeto reset blockchain state and volumes - Build failures: Try
make buildto rebuild images with commit ID - Permission errors: Ensure Docker daemon is running and user has permissions
- Service startup: Check
docker compose logs -ffor detailed error messages