> For the complete documentation index, see [llms.txt](https://docs.orai.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.orai.io/developer-guides/local-chain-testnet.md).

# Local testnet chain

This guide will provide step-by-step how to run a local testnet chain

### **Step 1: Access the Oraichain repository**

The first thing you need to do is head over to the Oraichain repository. This repository is designed to help you launch and interact with local testnet chain. You can find this repo [here](https://github.com/oraichain/wasmd.git)

### **Step 2: Clone the repository**

After find Oraichain repo, clone it to your desire folder

```bash
git clone https://github.com/oraichain/wasmd.git && cd wasmd
```

### **Step 3: Set up**

* Build the binary

```bash
make build
```

* Check result

```bash
oraid version
```

### **Step 4: Start the local network**

```bash
./scripts/multinode-local-testnet.sh
```

This command essentially creates a local network of three validators running in the background.

## Logs

Validator1: screen -r validator1

Validator2: screen -r validator2

Validator3: screen -r validator3

CTRL + A + D to detach

## Directories

Validator1: `.oraid/validator1`

Validator2: `.oraid/validator2`

Validator3: `.oraid/validator3`

## Ports

"x, x, x, x, rpc, p2p, x"

Validator1: `1317, 9090, 9091, 26658, 26657, 26656, 6060`

Validator2: `1316, 9088, 9089, 26655, 26654, 26653, 6061`

Validator3: `1315, 9086, 9087, 26652, 26651, 26650, 6062`

Ensure to include the `--home` flag or `--node` flag when using a particular node.

## Examples

Validator2: `oraid status --node "tcp://localhost:26654"`

Validator3: `oraid status --node "tcp://localhost:26651"`

or

Validator1: `oraid keys list --keyring-backend test --home $HOME/.oraid/validator1`

Validator2: `oraid keys list --keyring-backend test --home $HOME/.oraid/validator2`


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.orai.io/developer-guides/local-chain-testnet.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
