For client command documentation take a look at Client Docs
If you did generate your miner key over the tracker you will need to convert it from WIF-Format to RAW
- WIF looks like that:
KxP3w2eTciGTGhNj4FtHvaKD1TVUS4P2pSTLrQx2BLTkzjekFKkp
- Raw looks like that:
7a93d447bffe6d89e690f529a3a0bdff8ff6169172458e04849ef1d4eafd7f86
Therefore you need to run the client application which can convert your key for you.
After you started the client enter this command for conversion:
chain key -input "your-priv-key"
After you are in sync with the chain you can start with block production. Therefore you must register your node in the network.
The registration can be done with the client application. For the commands needed take a look at Client Docs | Section 7.1
If the registration broadcast was successfull you will be able to vote for your node in the Tracker
In order to run multiple applications or keep one application running after exiting the SSH session you need a program that enables you to have multiple terminal instances on your machine. Screen is a good starting point: Screen Tutorial
If you are a newbie you should probably learn how to keep your server secure.
This is a good starting point: Securing your Server
Ubuntu 18.04 LTS
sudo apt install git -y
git clone https://github.com/yuomii/APEX-Mainnet-Node.git
cd APEX-Mainnet-Node
chmod +x install.sh && chmod +x configure.sh && chmod +x run.sh && chmod +x client.sh && chmod +x firewall.sh
sudo sh install.sh
Run the script
sh configure.sh -h "your-host-ip" -k "your-producer-key" -t "timestamp" -a "peer-ip-1" -b "peer-ip-2" -n "your-node-name"
- Your own public static IP
-h 142.101.15.14
- Your miner private key in RAW Format
-k 7a93d447bffe6d89e690f529a3a0bdff8ff6169172458e04849ef1d4eafd7f86
- The timestamp for the genesis block
-t 2019-05-18T09:05:00Z
- IP of your first peer node to connect to
-a 71.111.91.7
- IP of your second peer node to connect to
-b 72.121.61.1
- The name of your node
-n MyFancyNode
Using the example values above it would be
sh configure.sh -h 142.101.15.14 -k 7a93d447bffe6d89e690f529a3a0bdff8ff6169172458e04849ef1d4eafd7f86 -t 2019-05-18T09:05:00Z -a 71.111.91.7 -b 72.121.61.1 -n MyFancyNode
It makes sense to run this command in an own screen session. Make sure you are familiar with screen and have it installed on your machine. Screen Tutorial
sh run.sh
It makes sense to run this command in an own screen session. Make sure you are familiar with screen and have it installed on your machine Screen Tutorial
sh client.sh
sudo sh firewall.sh -p <your-ssh-port>