/decentr

Decentr blockchain

Primary LanguageGoOtherNOASSERTION

Decentr

go version testnet version mainnet version latest version

Decentr blockchain

Run Local Node Quick Start

This assumes that you're running Linux or MacOS and have installed Go 1.19+. This guide helps you:

  • build and install Decentr
  • allow you to name your node
  • add seeds to your config file
  • download genesis state
  • start your node
  • use decentrdcli to check the status of your node.

If you already have a previous version of Decentr installed:

rm -rf ~/.decentr

Mainnet

Build, Install, and Name your Node:

# Clone Decentr from the latest release
git clone https://github.com/Decentr-net/decentr
# Enter the folder Decentr was cloned into
cd decentr && git checkout v1.6.2
# Compile and install Decentr
make install
# Initialize decentrd in ~/.decentrd and name your node
decentrd init <yournodenamehere>

Patch Seeds:

sed -E -i 's/seeds = \".*\"/seeds = \"7708addcfb9d4ff394b18fbc6c016b4aaa90a10a@ares.mainnet.decentr.xyz:26656,8a3485f940c3b2b9f0dd979a16ea28de154f14dd@calliope.mainnet.decentr.xyz:26656,87490fd832f3226ac5d090f6a438d402670881d0@euterpe.mainnet.decentr.xyz:26656,3261bff0b7c16dcf6b5b8e62dd54faafbfd75415@hera.mainnet.decentr.xyz:26656,5f3cfa2e3d5ed2c2ef699c8593a3d93c902406a9@hermes.mainnet.decentr.xyz:26656,a529801b5390f56d5c280eaff4ae95b7163e385f@melpomene.mainnet.decentr.xyz:26656,385129dbe71bceff982204afa11ed7fa0ee39430@poseidon.mainnet.decentr.xyz:26656,35a934228c32ad8329ac917613a25474cc79bc08@terpsichore.mainnet.decentr.xyz:26656,0fd62bcd1de6f2e3cfc15852cdde9f3f8a7987e4@thalia.mainnet.decentr.xyz:26656,bd99693d0dbc855b0367f781fb48bf1ca6a6a58b@zeus.mainnet.decentr.xyz:26656\"/' $HOME/.decentr/config/config.toml

Download snapshot:

# remove old data in ~/.decentr/data/
rm -rf ~/.decentr/data/; \
mkdir -p ~/.decentr/data/; \
cd ~/.decentr/data/

# download snapshot
SNAP_NAME=$(curl -s https://snapshots.mainnet.decentr.xyz | egrep -o ">decentr-.*tar.gz" | tr -d ">" | tail -n 1)
wget -O - https://snapshots.mainnet.decentr.xyz/${SNAP_NAME} | tar xzf -

Download Genesis, Start your Node, Check your Node Status:

# Download genesis.json
wget -O $HOME/.decentr/config/genesis.json https://raw.githubusercontent.com/Decentr-net/mainnets/master/3.0/genesis.json
# Start Decentrd
decentrd start
# Check your node's status
decentrd status

Welcome to the Decentr Mainnet!

Testnet

Build, Install, and Name your Node:

# Clone Decentr from the latest release
git clone -b v1.6.2 https://github.com/Decentr-net/decentr
# Enter the folder Decentr was cloned into
cd decentr
# Compile and install Decentr
make install
# Initialize decentrd in ~/.decentrd and name your node
decentrd init <yournodenamehere>

Patch Seeds:

sed -E -i 's/seeds = \".*\"/seeds = \"73fcfee94c476d185cb7a35863bf82fb444c500b@ares.testnet.decentr.xyz:26656,890fa479c89ba88facd964c30eb7d84fbfb0072b@hera.testnet.decentr.xyz:26656,600fc5298ac55e4af6c5c00f18714c6cd313bb5c@hermes.testnet.decentr.xyz:26656,2a13e93e8b27c09baacaf68fdd7db5401f4b9060@poseidon.testnet.decentr.xyz:26656,345675d302faaf602d8e1eca791cc11766ff1832@zeus.testnet.decentr.xyz:26656\"/' $HOME/.decentr/config/config.toml

Download Genesis, Start your Node, Check your Node Status:

# Download genesis.json
wget -O $HOME/.decentr/config/genesis.json https://raw.githubusercontent.com/Decentr-net/testnets/master/1.5.0/genesis.json
# Start Decentrd
decentrd start
# Check your node's status
decentrd status

Welcome to the Decentr Testnet!

Dev tools

Requirements

To build project you should have:

  • go >= 1.19
  • docker

Guide

To fetch last proto 3rd party

make proto-update-deps

To generate go models from proto

make proto-gen

To generate swagger from proto

make proto-swagger-gen

Scripts

Follow us!

Your data is value. Decentr makes your data payable and tradeable online.