Skip to main content
🔓 The Moca Chain source code is publicly available on GitHub: mocachain/moca.

Validator Information

Prerequisites

  • Git
  • Go 1.23+ and jq (native run)
  • Docker 24+ and Docker Compose (docker run)
  • macOS or Linux

Setting up Local Testnet

Clone the Repo

Clone the repository and navigate to the base directory:

Deploy Single Node network.

1. Build the binaries

2. Deploy single validator / storage provider.

Start a single validator network with one Storage Provider:
This initializes, generates genesis, and starts the node(s). Keys and data live under:
  • deployment/localup/.local/validator0
  • deployment/localup/.local/sp0
Ports and services:
  • CometBFT RPC: http://127.0.0.1:26657/status
  • EVM RPC: http://127.0.0.1:8545
  • REST API (LCD): http://127.0.0.1:1317
  • gRPC: 127.0.0.1:9090
🎉 Your local testnet is now setup for your testing!

3. Interact with the chain

Here are some examples of how you can interact with the running services above.

4. Stop/reset

If you need to stop/reset the chain here are the commands below: