> For the complete documentation index, see [llms.txt](https://docs.minervachain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.minervachain.org/run-a-node/join-testnet.md). Agents can also search and read this documentation through its [MCP server](https://docs.minervachain.org/~gitbook/mcp).

# Join the testnet

The testnet (chain id 77138) runs the same software and rules as the mainnet. Use it to rehearse a node or miner setup, to test contract deployments, or to mine test MRV for development.

|                       |                                                                                                                                                                 |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Chain id / network id | `77138`                                                                                                                                                         |
| Genesis               | `https://testnet.minervachain.org/genesis.json`                                                                                                                 |
| Genesis hash          | `0x364c9c46ce915db7a4bbd746fabbab83a07ae3626773830090b4704a9799af38`                                                                                            |
| Bootnode              | `enode://4137d64994dc7bc3d4cb86df2cfe7958ee8c55d004dc716594301b82b237734c0ed34a77853274884753f24bac653dec9232f01ad8789f14eaed8c826961fe16@148.113.213.71:30303` |
| Public RPC            | `https://testnet.minervachain.org/rpc`                                                                                                                          |
| Faucet                | `https://testnet.minervachain.org/faucet`                                                                                                                       |

## Docker

```sh
mkdir -p ~/minerva-testnet && cd ~/minerva-testnet
curl -fsSLO https://testnet.minervachain.org/genesis.json

docker run -d --name minerva-testnet --restart unless-stopped \
  -e MINERVA_NETWORK=minerva-testnet \
  -e MINERVA_NETWORK_ID=77138 \
  -e MINERVA_GENESIS_HASH=0x364c9c46ce915db7a4bbd746fabbab83a07ae3626773830090b4704a9799af38 \
  -e MINERVA_BOOTNODES="enode://4137d64994dc7bc3d4cb86df2cfe7958ee8c55d004dc716594301b82b237734c0ed34a77853274884753f24bac653dec9232f01ad8789f14eaed8c826961fe16@148.113.213.71:30303" \
  -v "$PWD/genesis.json:/genesis.json:ro" \
  -v minerva-testnet-data:/data \
  -p 30304:30303/tcp -p 30304:30303/udp \
  -p 127.0.0.1:8546:8545 \
  minerva/minerva-geth:local
```

The example maps the testnet to ports 30304 and 8546 so it can run beside a mainnet node on the same host. Add `MINERVA_MINER_ETHERBASE` and `MINERVA_MINER_THREADS` to mine; the etherbase is a Minerva account address, identical to the one you would use on the mainnet.

## Bare metal

```sh
minerva-geth genesis-hash genesis.json      # 0x364c9c46…af38
minerva-geth --datadir ~/minerva-testnet/data init genesis.json
minerva-geth --datadir ~/minerva-testnet/data --networkid 77138 --port 30304 \
  --syncmode full --http --http.addr 127.0.0.1 --http.port 8546 \
  --http.api eth,net,web3,minerva,txpool --authrpc.port 8552 \
  --bootnodes "enode://4137d64994dc7bc3d4cb86df2cfe7958ee8c55d004dc716594301b82b237734c0ed34a77853274884753f24bac653dec9232f01ad8789f14eaed8c826961fe16@148.113.213.71:30303"
```

## Verify

```sh
minerva-geth doctor --rpc http://127.0.0.1:8546 --network minerva-testnet --genesis genesis.json
curl -s -X POST http://127.0.0.1:8546 -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'     # 0x12d52
```

## Test MRV

`POST https://testnet.minervachain.org/faucet/request` with `{"address":"0x…"}` pays 1 MRV to a Minerva account and can deploy it; the faucet pays from a PQ-controlled treasury account that also receives the testnet's block rewards. Minerva Wallet's Faucet button on the testnet does the same. Test MRV has no value.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.minervachain.org/run-a-node/join-testnet.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
