Skip to main content
⚠️ This section may change without prior notice
Critical information in this section may be subject to change as the network is in early stages.
🔓 The Moca Chain source code is publicly available on GitHub: mocachain/moca.

Network Information

Mainnet AccessMainnet RPC access requires an API key. Contact the Moca Chain team to obtain your key.

Node Information

Minimum System Requirements

Setting Up a New Node

Prerequisites

For Docker (Option A):
  • Docker
  • jq
For Manual Cosmovisor (Option B):
  • Git
  • Go 1.23+
  • jq
  • macOS or Linux

1. Clone the Repo (Option B only)

Skip this step if using the Docker image (Option A).
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. The official Docker image is available on GitHub Container Registry. This image comes with the genesis binary preinstalled and runs mocad 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.
Alternatively you can provide your own list of peers.

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.
The node will take some time to fully sync up to the current chain height.

Verify Syncing

You can verify if state sync is done by curl localhost:26657/status several times and see whether latest_block_height is increasing in response.