🔓 The Moca Chain source code is publicly available on GitHub: mocachain/moca.
Network Information
Node Information
Minimum System Requirements
Recommended System Requirements
Setting Up a New Node
Prerequisites
For Docker (Option A):- Docker
- jq
- Git
- Go 1.23+
- jq
- macOS or Linux
1. Clone the Repo (Option B only)
Clone the repository and checkout the latest stable version:2. Install Cosmovisor
Cosmovisor is a process manager for Cosmos SDK nodes that automatically handles chain upgrades. It is the recommended way to run a Moca Chain node.Option A: Official moca-cosmovisor Docker Image (Recommended)
The official Docker image is available on GitHub Container Registry. This image comes with the genesis binary preinstalled and runsmocad with Cosmovisor.
Option B: Manual Cosmovisor Setup
If you prefer to run Cosmovisor manually without Docker, follow these steps.Install Cosmovisor
Build or Download the Binary
You can either build from source or download pre-compiled binaries from GitHub Releases.Setup Cosmovisor Directory Structure
3. Initialize Node
This will initialize your local moca node home directory~/.mocad containing chain data configuration.
Using Docker (Option A)
Using Manual Cosmovisor (Option B)
4. Pull Live genesis file
Fetch the genesis file for your target network.5. Add peers
Configure persistent peers so your node can join the p2p network.6. Fast sync state
State sync quickly bootstraps your node by trusting a recent block header (light client verification) and downloading a snapshot of the application state at that height, instead of replaying all historical blocks.7. Run the node
Using Docker (Option A)
Run the Docker container with a mounted volume for persistent data:Using Manual Cosmovisor (Option B)
DAEMON_ALLOW_DOWNLOAD_BINARIES=true enables Cosmovisor to automatically download new binaries during chain upgrades. Without this, the node will halt at the upgrade height and require manual binary replacement. Alternatively, you can pre-stage binaries at $DAEMON_HOME/cosmovisor/upgrades/<upgrade-name>/bin/mocad.