> For the complete documentation index, see [llms.txt](https://services.luckyresearch.org/lucky-research-services/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.luckyresearch.org/lucky-research-services/testnet/dymension/installation.md).

# Installation

\
**Hardware prerequisites**[​](https://docs.dymension.xyz/validate/dymension/overview#hardware-prerequisites)

To prepare for the upcoming testnet and network upgrades the Dymension validators and full nodes should be prepared with the following minimum recommended hardware requirements:

* 8 cores
* 1TB of NVME disk storage
* 64gb of memory (RAM)
* 100mbps network bandwidth<br>

&#x20;**Preparing the server**<br>

```
sudo apt update && sudo apt upgrade -y 
sudo apt install curl lz4 tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
```

Install Go<br>

```
cd $HOME 
ver="1.21.3" 
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" 
sudo rm -rf /usr/local/go 
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" 
rm "go$ver.linux-amd64.tar.gz" 
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile 
source $HOME/.bash_profile go version
```

```
cd $HOME 
 git clone https://github.com/dymensionxyz/dymension.git 
cd dymension 
git checkout v2.0.0-alpha.8
make install
```

Verify that the Dymension full node is installed correctly<br>

```
dymd version --long
```

**Example**:<br>

> name: dymension \
> server\_name: dymd \
> version: v2.0.0-alpha.8\
> commit: 080bbb9ede90170f84a3f4f3665c179ea8742716

```
dymd init mynode --chain-id=froopyland_100-1
dymd config chain-id froopyland_100-1
```

Create Wallet:

```bash
to restore exexuting wallet, use the flag recover
```

```
dymd keys add OR dymd keys add --recover
```

Download Genesis:<br>

```
wget https://raw.githubusercontent.com/111STAVR111/props/main/Dymension/Testnet/genesis.json -O $HOME/.dymension/config/genesis.json
```

Download Addrbook:

> ```bash
> wget -O $HOME/.dymension/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Dymension/Testnet/addrbook.json"
> ```

> ```
> Add seeds & Peer 
> ```
>
> ```
>
> sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0udym\"/;" ~/.dymension/config/app.toml
> external_address=$(wget -qO- eth0.me) 
> sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/" $HOME/.dymension/config/config.toml
> peers="e7857b8ed09bd0101af72e30425555efa8f4a242@148.251.177.108:20556,3410e9bc9c429d6f35e868840f6b7a0ccb29020b@46.4.5.45:20556"
> sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.dymension/config/config.toml
> seeds="ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@testnet-seeds.polkachu.com:20556"
> sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.dymension/config/config.toml
> sed -i 's/max_num_inbound_peers =.*/max_num_inbound_peers = 50/g' $HOME/.dymension/config/config.toml
> sed -i 's/max_num_outbound_peers =.*/max_num_outbound_peers = 50/g' $HOME/.dymension/config/config.toml
>
> ```

> **Set pruning**

```
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
  $HOME/.dymension/config/app.toml
```

Create systemd&#x20;

```
sudo tee /etc/systemd/system/dymd.service > /dev/null <<EOF 
[Unit] 
Description=DYMENSION\n 
After=network.target 
[Service] 
Type=simple 
User=$USER
 ExecStart=$(which dymd) start 
Restart=on-failure 
RestartSec=10 
LimitNOFILE=65535 
[Install] 
WantedBy=multi-user.target 
EOF
```

```
sudo systemctl daemon-reload 
sudo systemctl enable dymd
```

**SnapShot Mainnet updated every 5 hours**

```
cd $HOME 
apt install lz4 
sudo systemctl stop dymd 
cp $HOME/.dymension/data/priv_validator_state.json $HOME/.dymension/priv_validator_state.json.backup 
rm -rf $HOME/.dymension/data 
curl -L https://snapshots.kjnodes.com/dymension-testnet/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.dymension
mv $HOME/.dymension/priv_validator_state.json.backup $HOME/.dymension/data/priv_validator_state.json 
sudo systemctl restart dymd && journalctl -u dymd -f -o cat
```

Create Validator

```
dymd tx staking create-validator
--commission-rate 0.1
--commission-max-rate 0.2
--commission-max-change-rate 0.2
--min-self-delegation "1000000"
--amount 1000000000000000000adym
--pubkey $(dymd tendermint show-validator)
--from
--gas 350000
--fees 7000000000000000adym
--moniker="Your Validator"
--chain-id="froopyland_100-1"
--identity=""
--website=""
--details="" -y
```

Delete Node ( <mark style="color:red;">Be careful when using this command, all your data will be deleted</mark>)<br>

> sudo systemctl stop dymd \
> sudo systemctl disable dymd \
> rm /etc/systemd/system/dymd.service \
> sudo systemctl daemon-reload cd $HOME \
> rm -rf dymension \
> rm -rf .dymension\
> &#x20;rm -rf $(which dymd)


---

# 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://services.luckyresearch.org/lucky-research-services/testnet/dymension/installation.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.
