GNOSIS mainnet node setup guide.

   Oficcial DOCS HERE

 
EXECUTION CLIENT (Nethermind)
 

sudo apt-get update && sudo apt-get install libsnappy-dev libc6-dev libc6 unzip -y

cd $HOME
mkdir gnosis && cd gnosis &&
mkdir jwtsecret && mkdir execution && mkdir consensus &&
cd consensus &&
mkdir data && mkdir keystores && mkdir validators &&
cd $HOME/gnosis

openssl rand -hex 32 | tr -d "\n" > "./jwtsecret/jwt.hex"

#Download Nethermind actual version
#Version below was actual to 23.11.2023

wget https://github.com/NethermindEth/nethermind/releases/download/1.22.0/nethermind-1.22.0-ae444a4b-linux-x64.zip
unzip nethermind*.zip -d $HOME/gnosis/execution
chmod +x $HOME/gnosis/execution/Nethermind.Runner

sudo tee /etc/systemd/system/gnosisd.service << EOF
[Unit]
Description=gnosis
After=network-online.target
#
[Service]
User=$USER
WorkingDirectory=$HOME/gnosis/execution
ExecStart=$HOME/gnosis/execution/Nethermind.Runner --JsonRpc.Enabled true \
--config gnosis \
--datadir $HOME/gnosis/execution \
--Sync.FastSync true \
--Init.WebSocketsEnabled true \
--JsonRpc.Host 0.0.0.0 \
--HealthChecks.Enabled true \
--JsonRpc.JwtSecretFile=$HOME/gnosis/jwtsecret/jwt.hex \
--JsonRpc.EnabledModules Admin,Baseline,Clique,Consensus,Db,Debug,Deposit,Eth,NdmConsumer,NdmProvider,Net,Nft,Parity,Personal,Proof,Subscribe,Trace,TxPool,Vault,Web3 \
--Discovery.Bootnodes enode://a8558c4449bdb4ed47b8fd0ceaee8cf56272cd308e98e693a838d58b9abd2411b71b9b7e2d63a50b140fd9b0a2e05e83f338c3906dd925e9f178f0feda0c4ca7@165.232.138.187:30303,enode://e52280c512cd1f023135d7f70f31904bda7bb699d4300346182a2e3fc5a07637c25cc4349b48101ffe2fe6229b3b165ed7929ad9db971d847d02e21192989ce5@143.198.156.24:30303,enode://8ed1893f617f1ed2c6a978fa92fa38ac19db6de5596c93bf21921c40ed34f63b63a93234ddedf9b385192dd7aa652e1d4b55efed299961b0ae5d4318ecb985ec@159.223.213.61:30303,enode://cc3f99a19360edd73f91f04c6fe728ff8da431f8445a35c02a0fd99fee2be5d9f5ea75a416b08f4a019e0a0d3afa8aece93a560bbe3ce0509eec54bbddc00bb8@178.62.194.136:30303,enode://8f3a63b270cd32692f5b825874b9f3acef3cf90dec40fe54848267f568b7275349efb830812c1b24f1781774f745fb00e595d2feef642fd6867e173f05108cc4@178.62.192.195:30303,enode://075d567bcc5b6bbcb5c9922bf7f17a706408bed141dcefb5d387cfe6e0c7c9407e450a5d17b9180b25fb07b3e82943639d011752ea44a2d868b3c37f48a318b9@167.99.209.14:30303
#
RestartSec=10
Restart=on-failure
LimitNOFILE=65535
EOF

sudo systemctl daemon-reload
sudo systemctl enable gnosisd
sudo systemctl restart gnosisd
sudo journalctl -u gnosisd -f -o cat

BEACON NODE (Lighhouse)

#Download Lighthouse actual version
#Version below was actual to 23.11.2023

cd $HOME/gnosis
wget https://github.com/sigp/lighthouse/releases/download/v4.3.0/lighthouse-v4.3.0-x86_64-unknown-linux-gnu-portable.tar.gz
tar -xvf lighthouse-v4.3.0-x86_64-unknown-linux-gnu-portable.tar.gz --directory $HOME/gnosis/consensus
chmod +x $HOME/gnosis/consensus/lighthouse

sudo tee /etc/systemd/system/beacond.service << EOF
[Unit]
Description=gno-beacon
After=network-online.target
#
[Service]
User=$USER
ExecStart=$HOME/gnosis/consensus/lighthouse \
--network gnosis beacon_node  \
--http \
--execution-endpoint http://localhost:8551 \
--execution-jwt=$HOME/gnosis/jwtsecret/jwt.hex \
--checkpoint-sync-url "https://checkpoint.gnosischain.com"
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
#
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable beacond
sudo systemctl restart beacond
sudo journalctl -u beacond -f -o cat

#check node health
curl localhost:8545/health

#check block height in hex
curl -sSH "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "eth_blockNumber","params": []}' localhost:8545 | jq -r .result

#convert hex to decimal HERE
 
 #compare height to Gnosis explorer HERE 

GOOD LUCK!

AM Solutions © Copyright. All rights reserved.

We need your consent to load the translations

We use a third-party service to translate the website content that may collect data about your activity. Please review the details and accept the service to view the translations.