Current Height
-
Latest Block
-
Node Status
-
Latest Blocks
| Height | Hash | Timestamp | Transactions | Actions |
|---|---|---|---|---|
| Loading blocks... | ||||
#!/bin/bash # Deploy blockchain explorer directly on ns3 server set -e echo "🔍 Deploying Blockchain Explorer on ns3" echo "======================================" # Colors GREEN='\033[0;32m' YELLOW='\033[1;33m' NC='\033[0m' print_status() { echo -e "${GREEN}[INFO]${NC} $1" } print_warning() { echo -e "${YELLOW}[WARN]${NC} $1" } # Check if we're on the right server if [ "$(hostname)" != "ns3" ] && [ "$(hostname)" != "aitbc" ]; then print_warning "This script should be run on ns3 server" exit 1 fi # Create directory print_status "Creating blockchain explorer directory..." mkdir -p /opt/blockchain-explorer cd /opt/blockchain-explorer # Create a simple HTML-based explorer (no build needed) print_status "Creating web-based explorer..." cat > index.html << 'EOF'
Current Height
-
Latest Block
-
Node Status
-
| Height | Hash | Timestamp | Transactions | Actions |
|---|---|---|---|---|
| Loading blocks... | ||||