└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # Elixir_V3_Node 2 | Running an Elixir Testnet Validator 3 | 4 | ## Project Introduction 5 | 6 | Introducing the next generation of orderbook liquidity: a modular network natively powering exchanges 7 | 8 | Elixir is a modular DPoS network built to power liquidity on orderbook exchanges. 9 | 10 | ​Elixir is cross-chain and composable: enabling orderbook DEXs to natively integrate Elixir Protoco - a decentralized protocol - into their core infrastructure to unlock retail liquidity for pairs, among other exciting use cases. The decentralized network serves as crucial underlying infrastructure allowing for exchanges and protocols to easily bootstrap liquidity to their books. 11 | 12 | ​Elixir has 30+ native integrations into the core infrastructure of leading DEXs 13 | 14 | ## Join our community for Airdrops & Nodes 15 | 16 | **Youtube** : https://www.youtube.com/@cryptoconsole 17 | 18 | **Follow X** : https://x.com/cryptoconsol 19 | 20 | **Join TG** : https://t.me/cryptoconsol 21 | 22 | 23 | ### Requirements 24 | 25 | | **Requirement** | **Description** | 26 | |------------------------------|-------------------------------------| 27 | | Operating System | Ubuntu 22.04 or newer | 28 | | Memory (RAM) | Minimum 8 GB | 29 | | Disk Space | Minimum 100 GB of free disk space | 30 | | Bandwidth | 100Mbit/s | 31 | 32 | ### Install Dependencies 33 | 34 | ``` 35 | sudo apt update && sudo apt upgrade -y 36 | sudo apt install -y curl git jq lz4 build-essential unzip 37 | ``` 38 | ### Install Docker 39 | Ignore if you already Installed 40 | 41 | ``` 42 | sudo apt install -y ca-certificates curl gnupg lsb-release 43 | curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg 44 | echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null 45 | sudo apt update && sudo apt install -y docker-ce docker-ce-cli containerd.io 46 | sudo usermod -aG docker $USER 47 | newgrp docker 48 | ``` 49 | ### Make a Directory for Elixir 50 | ``` 51 | mkdir elixir && cd elixir 52 | wget https://files.elixir.finance/validator.env 53 | ``` 54 | ### Install Nano 55 | Ignore if already installed 56 | 57 | ``` 58 | sudo apt install nano 59 | ``` 60 | ### Edit .env file 61 | 62 | ``` 63 | nano validator.env 64 | ``` 65 | 66 | Create a new and dedicated wallet using metamask. Don't use old wallet. 67 | 68 | STRATEGY_EXECUTOR_DISPLAY_NAME :Enter name for your Node 69 | 70 | STRATEGY_EXECUTOR_BENEFICIARY : Enter the wallet address here 71 | 72 | SIGNER_PRIVATE_KEY : Private key from the new wallet 73 | 74 | 75 | Ctrl+X - they press Y - Enter 76 | 77 | ### Faucet 78 | 79 | Get sepolia Eth from faucet or send it from another wallet. 80 | 81 | Faucet link : https://www.alchemy.com/faucets/ethereum-sepolia 82 | 83 | You need to have 0.001 Eth on mainnet. 84 | 85 | ### Docker pull 86 | 87 | ``` 88 | docker pull elixirprotocol/validator:v3 --platform linux/amd64 89 | ``` 90 | 91 | ### Start the Node 92 | 93 | ``` 94 | docker run -d \ 95 | --env-file ./validator.env \ 96 | --name elixir-testnet \ 97 | --restart unless-stopped \ 98 | -p 17690:17690 \ 99 | elixirprotocol/validator:v3 100 | ``` 101 | 102 | ### Mint Mock 103 | 104 | - Visit Testnet staking : https://testnet-3.elixir.xyz/ ( you can use any wallet for this purpose) 105 | - Mint mock tokens 106 | - Click on Custom validator 107 | - Search for the node wallet address 108 | - Stake the mock tokens on your validator. 109 | - Visit : https://www.elixir.xyz/apothecary 110 | - Connect to validator Wizard ( Watch the video) 111 | 112 | ### Check Logs 113 | ``` 114 | docker logs -f elixir 115 | ``` 116 | ### Check Health Status 117 | ``` 118 | curl 127.0.0.1:17690/health | jq 119 | ``` 120 | 121 | Get OK 122 | 123 | ## UseFul Commands 124 | 125 | **Upgrading Node** 126 | ``` 127 | cd elixir 128 | docker kill elixir 129 | docker rm elixir 130 | 131 | ``` 132 | 133 | ``` 134 | sed -i '/^ENV=/ s/=.*/=/' validator.env 135 | 136 | ``` 137 | 138 | **You can run both testnet and mainnet or mainnet only** 139 | 140 | 141 | **Testnet** 142 | ``` 143 | docker pull elixirprotocol/validator:testnet-3 --platform linux/amd64 144 | ``` 145 | ``` 146 | docker run -d \ 147 | --env-file ./validator.env \ 148 | --name elixir-testnet \ 149 | --env ENV=testnet-3 \ 150 | --restart unless-stopped \ 151 | -p 17690:17690 \ 152 | elixirprotocol/validator:testnet-3 153 | ``` 154 | 155 | **Mainnet** 156 | 157 | ``` 158 | docker pull elixirprotocol/validator --platform linux/amd64 159 | ``` 160 | 161 | ``` 162 | docker run \ 163 | --env-file validator.env \ 164 | --name elixir-mainnet \ 165 | --env ENV=prod \ 166 | -p 17691:17690 \ 167 | --restart unless-stopped \ 168 | elixirprotocol/validator 169 | ``` 170 | 171 | **Change the port value as per your need** 172 | 173 | 174 | Check logs 175 | ``` 176 | docker logs -f elixir 177 | ``` 178 | **Join our TG for More updates on Elixir** : https://t.me/cryptoconsol 179 | --------------------------------------------------------------------------------