Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

2. Setup

SphinxCoin edited this page Oct 7, 2018 · 6 revisions

How to setup go-spx

The first step is download and install Geth. You could follow the steps provided on the Official Go-Ethereum page, or follow the steps here ... both will work equally.

Automated builds are available for stable releases and the unstable master branch. Binary archives are published at Official Go-Ethereum builds. We recommend Geth 1.8.16.

Or you can build it from source:


From the official go-ethereum page:

For prerequisites and detailed build instructions please read the official go-ethereum Installation Instructions on the wiki.

Building geth requires both a Go (version 1.7 or later) and a C compiler. You can install them using your favourite package manager.


Build source on Ubuntu 16.04

Create the node folder and switch to it:

mkdir ~/spx && cd ~/spx

Clone the repo (you can clone the go-ethereum repo, both will work):

git clone https://github.com/SphinxCoinDev/go-spx.git

If you clone the go-ethereum repo, you can use the following syntax just to keep up with the steps here:

git clone https://github.com/ethereum/go-ethereum.git go-spx

this will clone the repo under the folder 'go-spx'.

Change into the folder:

cd go-spx

Build geth:

make geth

Move back to root SPX folder and create the genesis file:

cd .. && nano ~/spx/genesis.json

Copy the genesis.json file from this link genesis.json.

Create the data folder:

mkdir ~/.spx

Initiate the node:

.~/spx/go-spx/build/bin/geth --datadir ~/.spx init genesis.json

Create the static nodes file:

nano ~/.spx/geth/static-nodes.json

Copy the content from this link static-nodes.json.

Create your wallet:

.~/spx/go-spx/build/bin/geth --datadir ~/.spx account new

Remember your wallet credentials / passphrase!!!

Run the node:

.~/spx/go-spx/build/bin/geth --datadir ~/.spx --syncmode 'full' --networkid 77 --gasprice '0' targetgaslimit 4700000 --nodiscover console

IT IS VERY IMPORTANT TO USE " --gasprice '0' " this will limit the node not to charge any gas fees for the transactions!! VERY VERY VERY IMPORTANT

Clone this wiki locally