A full-featured, modern blockchain explorer for the AdventureCoin cryptocurrency.
- Real-time blockchain data sync
- Block and transaction views
- Wallet address history and balances
- Rich list of top holders
- Mempool viewer
- Mining/network statistics
- Mobile-friendly UI
- Dark/light theme toggle
- Ubuntu 20.04+
- Node.js 18+ (LTS)
- MongoDB 7.0+
- AdventureCoin Daemon (
adventurecoind) running with RPC enabled
sudo apt update
sudo apt install curl
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm install --lts- Install one line at a time
sudo apt-get install gnupg curlcurl -fsSL https://pgp.mongodb.com/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmorecho "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.listsudo apt-get updatesudo apt-get install -y mongodb-orggit clone https://github.com/CryptoDevelopmentServices/adventurecoin-block-explorer.gitcd adventurecoin-block-explorernpm install --legacy-peer-depsnano .env- Paste the following in .env:
(Replace your_rpc_username and your_rpc_password with your actual daemon credentials.)
# MongoDB Configuration MONGODB_URI=mongodb://localhost:27017/explorerdb MONGODB_DB=explorerdb # AdventureCoin RPC Configuration RPC_HOST=localhost RPC_PORT=9982 RPC_USER=your_rpc_username RPC_PASS=your_rpc_password # Sync interval in milliseconds SYNC_INTERVAL=60000
npm install -g pm2pm2 start scripts/sync-blockchain.js --name adventurecoin-sync- Check logs / monitor initial sync:
pm2 logs adventurecoin-syncnpm run buildpm2 start npm --name adventurecoin-explorer -- startpm2 startup- Follow the terminal instructions (copy/paste one-time command shown), then:
pm2 saveVisit:
http://your_server_ip:3000sudo apt install nginxsudo nano /etc/nginx/sites-available/adventurecoin-explorer- Paste this config:
server {
listen 80;
server_name explorer.yourdomain.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}- Enable the site:
sudo ln -s /etc/nginx/sites-available/adventurecoin-explorer /etc/nginx/sites-enabled/- Test config
sudo nginx -t- If all is okay, restart Nginx:
sudo systemctl restart nginxsudo apt install certbot python3-certbot-nginx- See here if you need more information on how to do this.
sudo certbot --nginx -d explorer.yourdomain.comcd adventurecoin-block-explorer
git pull
npm install --legacy-peer-deps
npm run build
pm2 restart allThis project is under the MIT License. See the LICENSE file for details.
For support inquiries open an issue on GitHub or contact the adventurecoin team through mail or discord.