Setup your node
Install pre requis
sudo apt-get update && sudo apt upgrade -y
sudo apt-get install make build-essential gcc git jq chrony -y
Install go
sudo rm -rf /usr/local/go
wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
rm go1.19.1.linux-amd64.tar.gz
Setting up go
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
Install Node
Install the Dymension node
binary by running the following commands
#from $HOME dir
git clone https://github.com/dymensionxyz/dymension.git
cd dymension
git fetch
git checkout v2.0.0-alpha.7
make install
To confirm that the node is well installed
dymd version
#v2.0.0-alpha.7
Setting up the Node
Initialization node
Please choose your MONIKER name and replace it in the next command, it will represent your node
dymd init MONIKER_NAME --chain-id froopyland_100-1
This will generate severals files in ~/.dymension/config/
- node_key.json
- genesis.json
- priv_validator_key.json
Download and replace the genesis file
rm ~/.dymension/config/genesis.json
wget https://snapshots.polkachu.com/testnet-genesis/dymension/genesis.json -O ~/.dymension/config/genesis.json
Set minimum gas prices
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0udym\"/" ~/.dymension/config/app.toml
Node connexion
In order to connect the node you can either use seeds
, lives peers
or address book
.
- Seeds
- Peers
- Addrbook
Set Seeds
SEEDS =
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/" $HOME/.dymension/config/config.toml
Set Peers
PEERS = 4d3645d9cb4e203e155812cc557677c86fc12830@85.239.240.194:14656,23e3d502de53066f70462eaad575147dbf56c1bf@89.117.49.68:26656,febc198f5086aed9bb578044c78cd9cfaf9023ac@65.108.229.93:29656,8593ea461aad5efe10be02aa703298fc6ed167c5@157.245.42.140:26656,95f016933b6b25a44a3b1257a45af1db3335ae61@65.109.30.110:11773,690669ec5ec2da0864594a4f75708b2ad79e430f@173.249.45.161:26656,e687a1b57b3906311d07efad32b059940ea88bbc@65.108.255.150:26656,784a6da030dc59fdee91d92745e7188bce6f6f1f@65.21.74.56:26656,53cab2281664ba925da2d1f33dc2c39108d8ec8a@86.48.31.105:26656,358e3b3cf2dd7b09fc6084c8741cbf9a5de7e059@65.109.28.165:1000,821e305c9f750780ad20188a5b72aa578debf1cb@95.217.222.4:26656,0bc626869591701335f3517c28ae1fe8d44e52d1@130.185.118.30:26656,882b954842f664cbf4030319371345174307064e@65.109.92.148:26656,36d734269c8e69fd60e9050a7f47733b2e570d1c@89.117.57.201:11656,1a339da7045ad3636539af8ffefd1848bf6fccd7@195.201.195.61:27656,07302c742948026dab4f1155cd914db8682e7de0@65.109.94.221:27856,b880b13cf0a5683ba91b8d802020f485b36552b5@185.217.125.110:26656,d5519e378247dfb61dfe90652d1fe3e2b3005a5b@65.109.68.190:14656,7a08dfb7596b53271dc4d04379e136f6b15ca8ee@84.203.117.234:26690,0d30a0790a216d01c9759ab48192d9154381e6c0@136.243.88.91:3240,ab80b1f623c666134cfec3d48acb5e4b2f7680f9@142.132.146.185:26656,c98afcefb4e3371a4a4332d0d3cccc0005d3e449@85.10.201.238:20556,997fc8f99400482a1e411da7c33d25148e5b6e31@168.119.114.206:26656,c1158e056f90b0ffeee942afad6e4cb052c54b75@176.9.48.38:26656,b9ed7ab0befde45bf727f66ff3d1aca6c69cb13d@95.179.168.216:26656,c8e27fdcd29c200b31574689a7c691b7ff8753cc@51.15.212.195:26656,236b71988898dff63cef139f83a64f5fbfd9d8d7@135.181.18.112:55696,e7857b8ed09bd0101af72e30425555efa8f4a242@148.251.177.108:20556,5fa1ddd340b982dfd8c074ec51732123f64e297e@167.235.7.34:14656,1fa5bb085e8f52c21bc71c39afbba2851bee3e18@43.157.50.9:26656,37823f1d24cf2375168c21214a6da1d2ba0b212f@135.181.180.230:36656,83ea44e6dda09acd37e1c9ed64b5f75d3d705d1c@38.242.239.185:26656,0938106191a9ae86bfdc164b8cd9a535fc7ff338@46.205.192.36:26658,94b63fddfc78230f51aeb7ac34b9fb86bd042a77@142.132.132.173:30585,5c2a752c9b1952dbed075c56c600c3a79b58c395@195.3.220.54:27086,c404339dcbe08b2ed93b666a3995044b83982308@46.166.170.53:26656,d7feaab13c06e39c886035385e78c9a0b3f75605@88.99.56.200:16656,5342f6f59c7b81b5ea3bef8cd9d6ad224b8eb473@95.217.176.55:26656,73cd8783f55df0101328d02ec0ae334d2d991dac@213.239.207.175:13056,e5226fa166386f9055908194a4942c06b7003ab5@65.108.192.123:42656,f71b4ab98e102928e9e2c288634da4888881d963@185.255.131.173:11656,2c5098b792aba7233acfcca44ff587c0a1f4f717@5.9.61.78:35656,f0146ef7499016db7c52e0e67c870e400e1eb906@65.108.124.13:26656,8cfa8294df343880a1b1a112b05b09f4008c4eef@142.132.132.164:26656,6496dac7244d12f697ee74688daf7e5b8dd2c869@144.91.65.13:26696,c916d9d37494ce6f57a4cdddecac327bf900d9bd@194.180.176.22:14656,05d4f45e4f935ea2ad44c29b64c22a9337fa3192@65.108.206.118:60756,08bc53992400e80dd5d603658e0d75509ed9d665@173.231.40.194:31740,4c0aa61fb83354fd504df5d8384e7f1eb5279e69@194.163.159.85:28656,4a1a761465438e4a74c0dfd0aef2510fa0d66489@144.126.148.159:11656,3466698ffacdbfc82e447a439f5702f93f270479@128.199.10.240:26656,a12fc76e970e72d5b9468d05ce1c14308d39070b@57.128.192.23:26666,c6329371271c247d35454862014dfd6ff5e3b680@65.108.141.109:49656,cb120ed9625771d57e06f8d449cb10ab99a58225@152.228.212.82:26656,923583380600938a6d1480675a338c9e4c00c02a@38.242.204.55:26656,1e92b79a713b18dffd4e075ddfa1dab87dd215a9@70.34.197.147:26656,c0a696d32ec32d6a2154d7bf02133dca2d360e88@88.198.8.79:3240,fa21ae6d1a74e94b8088074210f7a2f5b22c000c@209.182.238.144:28656,020e46068a93a5c9fefa9d27acc59749d0a64021@146.19.24.53:26556,7c272f0a9ee60a1616cf9f26f01e2ce81b71dc9e@162.55.1.176:26656,3f654afc1350640ab6196476385c82ecaf3376c1@136.243.55.237:43586,91e55bfa10d61706765f53824ddbbe1cc96fc9aa@173.212.223.233:10156,bde11d11e1d7adcda5c051f551c16bd1423c96df@65.21.73.18:30656,0fcd633ce57b46be32eaba297dd754e936832981@89.117.52.159:26656,997a654595c4347a1fc5f35e35e3953f549cb91b@46.4.23.42:47656,b48210eae64d61630185630bed0d7f215bfbf82d@194.233.90.134:26656,29e66c8a25a17a380c9c31feb3d2c3c83376a04c@162.19.31.150:55696,2b97ba17ad163b9ac520a30ee7cabbe06cf1ee69@161.97.131.204:26656,d7ade959cfc4271a382f5853c7f9c3252d98f8b3@135.181.117.144:20556,c81b68472cad6ce835adf829134c0c4ee68fd962@65.109.106.214:17656,daa74f7c5a1a89e79a7f55fce84f2d69f49b8ea6@84.54.23.41:26656,5dd4f70d3a84d3b0ea8ea6a3449cc38ff61dfe00@136.243.147.216:26656,e1b8927cf39b22a04d56084accdb8e6afad34d79@65.109.104.171:27656,690f91de88ecfa31dd7aee9beb5db27203da8fed@88.99.143.105:36656,6d43f97ea72a988082e288c03fe3fa82ef75c0c9@65.108.69.151:26656,5bd59399d230a2074c5b2aa108b53ac9c8e06d64@51.159.138.189:26656,60b254fbc8fb7f02cfdc1676b1624e14fbe31cb6@190.2.137.108:26666,3ab07a7ec04f6a226fd2ff14143d66d95b354ce0@65.21.67.137:36656,68a7f4cb1f7f77d695e257efed2e52ab0ba8ecd1@188.172.228.225:36657,184a93ae5b5b532accd9399e1ec8920da5680a31@46.4.107.67:61056,33c035178c4e863b851c9d2597c6f04a152640da@65.108.108.54:29151,83d1ef7c305c315211f7780a335f0076f17e0118@135.181.73.170:25156,48bdb78c51e56b651c938d075e1077dab2c6197c@43.157.27.89:26656,8aa2eaee3f759bfeddd1ff18166af59a615dd64f@46.4.99.152:31740,d38f2d677db90d7350105a38bbc2758e6ee48940@173.249.7.30:14656,4eac723e37c4a4c8c89b9540b7112007ec2aa2ad@95.217.119.56:36656,85f45ed40f48af2951dfad8b4987060f303f1b67@66.45.236.14:26656,240833b4c37dbfe62ba633479c3a6588bbea9bcd@176.9.121.109:41956,32ed437d261d7b38ccf8494c9ac06f0588a9bfbe@207.180.199.130:36656,9e26a6aae131adbffa951e5f781b26d3c3d9664e@190.2.146.152:33656,089f6f21038b907e8f359a8e1f981c8d44ff21f9@144.217.68.182:20556,51b6427668eda91cb925f8402ced74e2403805f6@65.109.92.240:17086,348d11e72522b7f2748cb6189757be0cf7e08e17@103.50.32.206:26656,5cb4e92c9e147408e3b02099bb0150c0ca368860@146.19.24.101:26646,f81b271c6cfb5c6266731cd401cc69b1143916fe@135.181.210.171:17086,c32aadce1d9cd33ab98823a4a21f18a2ee2aaaf6@135.181.58.28:10356,c735c89fead3eb1fc3f5494a2d6924d4300d1527@88.198.39.169:36656,522f73b636f4ee9dcb158d26125ac45c91a48461@88.99.61.173:36656,f61e69ff521f6a94987636051954077107d0c061@65.109.61.113:26675,0b0be200a8248636907d2edb8c2492b8170d6b00@190.124.251.2:26656,27a9069a79833df98adc4d2407d1e676fadf5c36@195.3.220.169:23466,501f81406d66643a4bc53f2e222984ef05301591@34.139.106.99:26656,7e263498ff625434fa19002a47ba2f64b78cceee@135.181.113.225:25656,51c792ab8fbd17c5f9e591da6b0577ba549c4a8d@5.9.83.110:14656,49f373ba6e37154431c91c43d795f125ded79f50@95.216.247.54:31656,aa755789a28dd8701ad1cd447866a2c029412199@144.76.18.199:26656,5e0770fca164ee02d9d6f8c2cfe30e9710379140@199.60.101.162:56656,21ff74cb73d64c61c927c3ae5f7900ae71ceb1ca@65.109.124.51:14656,5d19b0bbae885d10adc2db103ef4f56b28d8a0bb@65.108.73.124:29656,39f36eb33a4a5e2eb4899285f8837f5bd5899cbd@18.224.64.117:26656,a18148805c0452351dea2c0a30e1ee1a934ea3ae@15.235.160.84:31740
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.dymension/config/config.toml
Set Addrbook
Setup service file
[Unit]
Description="dymension node"
[Service]
User=USER
ExecStart=$(which dymd) start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
If you'd like to synchronise a node from a snapshot check the snapshot part
Start service file
systemctl daemon-reload
systemctl start dymension.service | journalctl -u dymension.service -f