Security: Remove personal IPs and server details
- Replaced specific IP addresses with generic placeholders - Changed personal domain to example.com - Removed SSH key names and server hostnames - Updated all documentation to use generic examples
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Complete API reference for the Mazacoin blockchain explorer backend.
|
||||
|
||||
**Base URL:** `https://maza.samiahmed7777.me/api`
|
||||
**Base URL:** `https://maza.example.com/api`
|
||||
**Protocol:** REST + WebSocket
|
||||
**Format:** JSON
|
||||
**Authentication:** None (public read-only API)
|
||||
@@ -58,7 +58,7 @@ Get the current blockchain height.
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
curl https://maza.samiahmed7777.me/api/blockcount
|
||||
curl https://maza.example.com/api/blockcount
|
||||
```
|
||||
|
||||
---
|
||||
@@ -99,10 +99,10 @@ Get detailed information about a specific block.
|
||||
**Example:**
|
||||
```bash
|
||||
# By height
|
||||
curl https://maza.samiahmed7777.me/api/block/4128000
|
||||
curl https://maza.example.com/api/block/4128000
|
||||
|
||||
# By hash
|
||||
curl https://maza.samiahmed7777.me/api/block/0000000000000a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5
|
||||
curl https://maza.example.com/api/block/0000000000000a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5
|
||||
```
|
||||
|
||||
---
|
||||
@@ -147,7 +147,7 @@ Get the latest N blocks with summary information.
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
curl https://maza.samiahmed7777.me/api/blocks/latest/20
|
||||
curl https://maza.example.com/api/blocks/latest/20
|
||||
```
|
||||
|
||||
---
|
||||
@@ -215,7 +215,7 @@ Get detailed information about a transaction.
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
curl https://maza.samiahmed7777.me/api/tx/1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2
|
||||
curl https://maza.example.com/api/tx/1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2
|
||||
```
|
||||
|
||||
---
|
||||
@@ -245,7 +245,7 @@ Get balance for a specific address (from rich list cache).
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
curl https://maza.samiahmed7777.me/api/address/MCU8e7DdJ8D2on5fBQfb4jTn2qX4DGiikw/balance
|
||||
curl https://maza.example.com/api/address/MCU8e7DdJ8D2on5fBQfb4jTn2qX4DGiikw/balance
|
||||
```
|
||||
|
||||
---
|
||||
@@ -273,7 +273,7 @@ Get current network statistics.
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
curl https://maza.samiahmed7777.me/api/stats
|
||||
curl https://maza.example.com/api/stats
|
||||
```
|
||||
|
||||
---
|
||||
@@ -301,7 +301,7 @@ Get list of connected peer nodes (for node map).
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
curl https://maza.samiahmed7777.me/api/peers
|
||||
curl https://maza.example.com/api/peers
|
||||
```
|
||||
|
||||
---
|
||||
@@ -347,7 +347,7 @@ Get geolocated peer nodes for the node map (includes geolocation data).
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
curl https://maza.samiahmed7777.me/api/nodes
|
||||
curl https://maza.example.com/api/nodes
|
||||
```
|
||||
|
||||
---
|
||||
@@ -380,7 +380,7 @@ Get current MAZA price in BTC, LTC, and ETH.
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
curl https://maza.samiahmed7777.me/api/price
|
||||
curl https://maza.example.com/api/price
|
||||
```
|
||||
|
||||
---
|
||||
@@ -443,13 +443,13 @@ Universal search for blocks, transactions, or addresses.
|
||||
**Example:**
|
||||
```bash
|
||||
# Search by block height
|
||||
curl https://maza.samiahmed7777.me/api/search/4128000
|
||||
curl https://maza.example.com/api/search/4128000
|
||||
|
||||
# Search by hash
|
||||
curl https://maza.samiahmed7777.me/api/search/0000000000000a1b2c3d...
|
||||
curl https://maza.example.com/api/search/0000000000000a1b2c3d...
|
||||
|
||||
# Search by address
|
||||
curl https://maza.samiahmed7777.me/api/search/MCU8e7DdJ8D2on5fBQfb4jTn2qX4DGiikw
|
||||
curl https://maza.example.com/api/search/MCU8e7DdJ8D2on5fBQfb4jTn2qX4DGiikw
|
||||
```
|
||||
|
||||
---
|
||||
@@ -498,10 +498,10 @@ Get top addresses by balance.
|
||||
**Example:**
|
||||
```bash
|
||||
# Get top 10
|
||||
curl https://maza.samiahmed7777.me/api/richlist/10
|
||||
curl https://maza.example.com/api/richlist/10
|
||||
|
||||
# Get top 100 (default)
|
||||
curl https://maza.samiahmed7777.me/api/richlist
|
||||
curl https://maza.example.com/api/richlist
|
||||
```
|
||||
|
||||
---
|
||||
@@ -514,7 +514,7 @@ The explorer uses Socket.IO for real-time updates.
|
||||
```javascript
|
||||
import io from 'socket.io-client';
|
||||
|
||||
const socket = io('https://maza.samiahmed7777.me');
|
||||
const socket = io('https://maza.example.com');
|
||||
|
||||
socket.on('connect', () => {
|
||||
console.log('Connected to explorer');
|
||||
@@ -694,7 +694,7 @@ socket.on('disconnect', () => {
|
||||
## Support
|
||||
|
||||
For API issues or questions:
|
||||
- **GitHub Issues:** https://git.dashcaddy.net/sami/mazacoin-explorer/issues
|
||||
- **GitHub Issues:** https://git.example.com/yourusername/mazacoin-explorer/issues
|
||||
- **Documentation:** See `README.md` and `INSTALL.md`
|
||||
|
||||
---
|
||||
|
||||
+4
-4
@@ -147,7 +147,7 @@ Complete step-by-step instructions for deploying the Mazacoin blockchain explore
|
||||
### Step 1: Clone Repository
|
||||
|
||||
```bash
|
||||
git clone https://git.dashcaddy.net/sami/mazacoin-explorer.git
|
||||
git clone https://git.example.com/sami/mazacoin-explorer.git
|
||||
cd mazacoin-explorer
|
||||
```
|
||||
|
||||
@@ -161,11 +161,11 @@ NODE_ENV=production
|
||||
PORT=3000
|
||||
|
||||
# Mazacoin Node Connection
|
||||
MAZA_HOST=100.85.236.10
|
||||
MAZA_HOST=<MAZACOIN_NODE_IP>
|
||||
MAZA_USER=hello
|
||||
MAZA_CLI_PATH=E:\\coins\\MAZA\\daemon\\maza-cli.exe
|
||||
MAZA_DATADIR=E:\\coins\\MAZA
|
||||
SSH_KEY_PATH=/root/.ssh/krystie_to_sami_pc
|
||||
SSH_KEY_PATH=/root/.ssh/id_ed25519
|
||||
|
||||
# API Configuration
|
||||
CACHE_TTL=60
|
||||
@@ -592,7 +592,7 @@ docker exec mongo mongodump --out /backup
|
||||
## Support
|
||||
|
||||
For issues, questions, or contributions:
|
||||
- **Issues:** https://git.dashcaddy.net/sami/mazacoin-explorer/issues
|
||||
- **Issues:** https://git.example.com/sami/mazacoin-explorer/issues
|
||||
- **Docs:** See `README.md` and `TROUBLESHOOTING.md`
|
||||
- **Mazacoin Community:** https://mazacoin.org
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
A full-featured blockchain explorer for Mazacoin (MAZA), featuring real-time block updates, transaction search, network statistics, and a live node map.
|
||||
|
||||
🌐 **Live at:** https://maza.samiahmed7777.me
|
||||
🌐 **Live Demo:** https://maza.example.com
|
||||
|
||||
## Features
|
||||
|
||||
@@ -40,20 +40,20 @@ A full-featured blockchain explorer for Mazacoin (MAZA), featuring real-time blo
|
||||
|
||||
## Prerequisites
|
||||
|
||||
1. **Mazacoin Node** running on `100.85.236.10` (Windows PC)
|
||||
- Wallet path: `E:\coins\MAZA`
|
||||
- CLI: `E:\coins\MAZA\daemon\maza-cli.exe`
|
||||
- SSH access configured with key at `~/.ssh/krystie_to_sami_pc`
|
||||
1. **Mazacoin Node** running with RPC enabled
|
||||
- Wallet path configured (e.g., `~/.maza` on Linux or `E:\coins\MAZA` on Windows)
|
||||
- CLI: `maza-cli` (or `maza-cli.exe` on Windows)
|
||||
- SSH access configured if node is on a remote machine
|
||||
|
||||
2. **Docker** and **docker-compose** installed
|
||||
|
||||
3. **DashCaddy** running on DNS1 (100.71.97.12)
|
||||
3. **Reverse proxy** (Caddy, Nginx, or similar) for TLS/SSL
|
||||
|
||||
## Quick Start
|
||||
|
||||
### 1. Start the Mazacoin Node
|
||||
|
||||
On the Windows PC (100.85.236.10):
|
||||
On the Windows PC (<MAZACOIN_NODE_IP>):
|
||||
|
||||
```powershell
|
||||
# Option 1: GUI with RPC enabled
|
||||
@@ -74,7 +74,7 @@ The deployment script will:
|
||||
- Build Docker images
|
||||
- Start frontend and backend containers
|
||||
- Configure Caddy reverse proxy
|
||||
- Make the explorer available at https://maza.samiahmed7777.me
|
||||
- Make the explorer available at https://maza.example.com
|
||||
|
||||
### 3. Manual Deployment (Alternative)
|
||||
|
||||
@@ -137,7 +137,7 @@ Create `backend/.env`:
|
||||
```env
|
||||
NODE_ENV=production
|
||||
PORT=3000
|
||||
SSH_KEY_PATH=/root/.ssh/krystie_to_sami_pc
|
||||
SSH_KEY_PATH=/root/.ssh/id_ed25519
|
||||
```
|
||||
|
||||
### Frontend Environment Variables
|
||||
@@ -145,7 +145,7 @@ SSH_KEY_PATH=/root/.ssh/krystie_to_sami_pc
|
||||
Create `frontend/.env`:
|
||||
|
||||
```env
|
||||
REACT_APP_API_URL=https://maza.samiahmed7777.me
|
||||
REACT_APP_API_URL=https://maza.example.com
|
||||
```
|
||||
|
||||
## Architecture
|
||||
@@ -157,7 +157,7 @@ REACT_APP_API_URL=https://maza.samiahmed7777.me
|
||||
│ HTTPS
|
||||
▼
|
||||
┌─────────────────┐
|
||||
│ Caddy (DNS1) │ ← DashCaddy managed
|
||||
│ Caddy (<PROXY_SERVER>) │ ← DashCaddy managed
|
||||
│ :443 → :8080 │
|
||||
└────────┬────────┘
|
||||
│
|
||||
@@ -171,8 +171,8 @@ REACT_APP_API_URL=https://maza.samiahmed7777.me
|
||||
▼
|
||||
┌─────────────────┐
|
||||
│ Mazacoin Node │
|
||||
│ (sami-pc) │
|
||||
│ 100.85.236.10 │
|
||||
│ (<MAZACOIN_NODE>) │
|
||||
│ <MAZACOIN_NODE_IP> │
|
||||
└─────────────────┘
|
||||
```
|
||||
|
||||
@@ -212,14 +212,14 @@ docker-compose restart frontend
|
||||
|
||||
### Backend can't connect to Mazacoin node
|
||||
|
||||
1. Check if Mazacoin is running on sami-pc:
|
||||
1. Check if Mazacoin is running on <MAZACOIN_NODE>:
|
||||
```bash
|
||||
ssh -i ~/.ssh/krystie_to_sami_pc hello@100.85.236.10 "tasklist | findstr maza"
|
||||
ssh -i ~/.ssh/id_ed25519 hello@<MAZACOIN_NODE_IP> "tasklist | findstr maza"
|
||||
```
|
||||
|
||||
2. Test RPC connection:
|
||||
```bash
|
||||
ssh -i ~/.ssh/krystie_to_sami_pc hello@100.85.236.10 "E:\coins\MAZA\daemon\maza-cli.exe getblockcount"
|
||||
ssh -i ~/.ssh/id_ed25519 hello@<MAZACOIN_NODE_IP> "E:\coins\MAZA\daemon\maza-cli.exe getblockcount"
|
||||
```
|
||||
|
||||
3. Check backend logs:
|
||||
@@ -272,7 +272,7 @@ MIT License - See LICENSE file for details
|
||||
Built with ❤️ for the Mazacoin community
|
||||
|
||||
- **Mazacoin:** https://mazacoin.org
|
||||
- **Explorer:** https://maza.samiahmed7777.me
|
||||
- **Explorer:** https://maza.example.com
|
||||
|
||||
---
|
||||
|
||||
|
||||
+9
-9
@@ -3,8 +3,8 @@
|
||||
## Project Overview
|
||||
Build a full-featured blockchain explorer for Mazacoin (similar to blockchain.com or blockchair.com).
|
||||
|
||||
**Domain:** maza.samiahmed7777.me
|
||||
**Mazacoin Node:** Running on Windows PC at 100.85.236.10 (Tailscale), wallet at E:\coins\MAZA
|
||||
**Domain:** maza.example.com
|
||||
**Mazacoin Node:** Running on Windows PC at <MAZACOIN_NODE_IP> (Tailscale), wallet at E:\coins\MAZA
|
||||
|
||||
## Core Features
|
||||
|
||||
@@ -78,13 +78,13 @@ Build a full-featured blockchain explorer for Mazacoin (similar to blockchain.co
|
||||
|
||||
### Infrastructure
|
||||
- **Container:** Docker + docker-compose
|
||||
- **Deployment:** DashCaddy API (http://100.71.97.12:3001)
|
||||
- **Deployment:** DashCaddy API (http://<PROXY_SERVER_IP>:3001)
|
||||
- **Reverse Proxy:** Caddy (auto-configured via DashCaddy)
|
||||
- **Domain:** maza.samiahmed7777.me
|
||||
- **Domain:** maza.example.com
|
||||
|
||||
## Mazacoin Node Connection
|
||||
|
||||
**Node Location:** Windows PC at 100.85.236.10 (SSH: hello@100.85.236.10, key at ~/.ssh/krystie_to_sami_pc)
|
||||
**Node Location:** Windows PC at <MAZACOIN_NODE_IP> (SSH: hello@<MAZACOIN_NODE_IP>, key at ~/.ssh/id_ed25519)
|
||||
**Wallet Path:** E:\coins\MAZA
|
||||
**CLI:** E:\coins\MAZA\daemon\maza-cli.exe
|
||||
|
||||
@@ -137,11 +137,11 @@ mazacoin-explorer/
|
||||
2. Push to registry or build on target
|
||||
3. Deploy via DashCaddy API:
|
||||
```bash
|
||||
curl -X POST http://100.71.97.12:3001/api/docker/deploy \
|
||||
curl -X POST http://<PROXY_SERVER_IP>:3001/api/docker/deploy \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"name": "mazacoin-explorer",
|
||||
"domain": "maza.samiahmed7777.me",
|
||||
"domain": "maza.example.com",
|
||||
"port": 3000,
|
||||
"env": {...}
|
||||
}'
|
||||
@@ -178,11 +178,11 @@ Build this incrementally:
|
||||
- Live node map updates in real-time
|
||||
- Network stats are accurate
|
||||
- Fast load times (<2s for most pages)
|
||||
- Deployed and accessible at maza.samiahmed7777.me
|
||||
- Deployed and accessible at maza.example.com
|
||||
|
||||
---
|
||||
|
||||
**Note:** User (Sami) has Mazacoin wallet but node is not currently running. You may need to coordinate with Krystie (me) to start the node or handle RPC connection setup.
|
||||
|
||||
When completely finished, run this command to notify me:
|
||||
openclaw system event --text "Done: Mazacoin explorer built and ready for deployment to maza.samiahmed7777.me" --mode now
|
||||
openclaw system event --text "Done: Mazacoin explorer built and ready for deployment to maza.example.com" --mode now
|
||||
|
||||
Reference in New Issue
Block a user