This guide takes you from a fresh clone to a running explorer: the Soroban contract, the indexer and API, and the React frontend.
- Rust with the
wasm32-unknown-unknowntarget - Stellar CLI
- Node.js 20 or newer
- PostgreSQL (or Docker, which provisions it for you)
git clone https://github.com/Soroban-Smart-Block-Explorer/Soroban-Smart-Block
cd Soroban-Smart-Block
cp .env.example .envOpen .env and set at least SOROBAN_RPC_URL and DATABASE_URL. The defaults
target Stellar testnet and a local PostgreSQL instance.
make build # compile the contract to WASM
make test # run the contract unit tests
make deploy # deploy to testnet and print CONTRACT_IDCopy the printed contract ID into .env as EXPLORER_CONTRACT_ID.
make indexer-install
make indexerThe REST API comes up on http://localhost:3001 and the WebSocket stream on the
same host. Confirm it is healthy:
curl http://localhost:3001/api/eventsmake frontend-install
make frontendOpen http://localhost:5173.
make install # install indexer and frontend dependencies
make dev # run indexer and frontend in parallelIf you prefer containers, the full stack (including PostgreSQL) starts with:
make docker-up # dev stack with hot reload
make docker-logs # tail logs
make docker-down # stop everything- Register a contract so its events decode into plain English.
- Build with the API from your own application.
- Explore every endpoint in the Swagger playground.