Indexer

✅ Indexer v4.1.0

⚠️ Testnet Only - Setup Namada Indexer with Docker Compose and persistent PostgreSQL data.

🛠 Prerequisites

System Requirements

- Ubuntu 20.04+ or Debian-based system
- 4GB+ RAM recommended
- 50GB+ free disk space

Install Required Packages

sudo apt-get update
sudo apt-get install -y curl apt-transport-https ca-certificates \
software-properties-common git nano build-essential jq

Install Docker & Docker Compose

# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER

# Install Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" \
  -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Install Rust and Just (Task Runner)

✅ Fresh Installation

Step 1: Clone Namada Indexer

Step 2: Configure Environment Variables

Edit .env file:

Generate strong password:

Step 3: Verify Docker Compose Configuration

Should show:

Step 4: Verify CometBFT RPC Access

Should show:

Step 5: Build and Start Services

Step 6: Verify Installation

Step 7: Check Logs

✅ Upgrade Indexer from v3.x.x to v4.1.0

Step 1: Backup Current Setup

Step 2: Update

Step 3: Rebuild and Restart

Step 4: Verify

Step 5: Verify API Health

✅ Database Backup & Restore

Data Persistence

Data location:

Verify volume:

Data Safety Rules

Data is SAFE during:

  • docker-compose down

  • docker-compose restart

  • docker-compose build --no-cache

  • ✅ Version upgrades

Data is DELETED when:

  • docker-compose down --volumes

  • docker volume rm namada-indexer_postgres-data

Golden Rule: NEVER use --volumes flag!

Manual Backup

Manual Restore

✅ Troubleshooting

Quick Commands

Full Reset (Destroys Data!)

Safe Restart

✅ Monitoring

✅ API Documentation

Full docs: https://anoma.github.io/namada-indexer/

Endpoints:

  • /health - Health check

  • /api/v1/chain/block/latest - Latest block

  • /api/v1/pos/validator/all - All validators

  • /api/v1/gov/proposal/all - Governance proposals

✅ Integration with Namadillo

Add:

Last updated