Skip to main content

Gnosis Chain

Gnosis Chain stands as a sentinel, functioning as a canary chain for Ethereum. It's operated and nurtured by the GnosisDAO community. With over 10% of its validators being home stakers via Dappnode, it's a testament to its popularity and accessibility.

Joining the Gnosis Chain as a Validator

Staking on the Gnosis Chain is both easy and economical. All it takes is 1 GNO to kickstart your journey as a Gnosis Chain validator. This low barrier to entry ensures that anyone, regardless of their financial position, can participate actively in the network as a block proposer. You will need to do 3 main tasks, broken down below:

  1. Install the necessary packages on Dappnode
  2. Create validator keys for Gnosis Chain
  3. Deposit GNO into the Gnosis Beacon Chain deposit contract

1. Install the necessary packages on Dappnode

Similar to Ethereum mainnet, Dappnode makes it very easy to set up you Gnosis Chain validator. Here's what the Stakers UI looks like for Gnosis Chain:

Stakers

  • Execution Client (Choose one):
    • Nethermind Xdai (Available now)
    • Gnosis Erigon (Coming soon!)
  • Consensus Client (Choose one):
    • Lighthouse Gnosis
    • Teku Gnosis
    • Lodestar Gnosis
  • Web3Signer Gnosis
Checkpoint Sync is your friend for syncing Consensus Clients

Execution clients take a long time to sync. Hence, once you start staking with one you will most likely stick with it. However, you can switch consensus clients at any time thanks to the magic of "checkpoint sync". Make sure to toggle the "use checksync" option when installing your consensus client, and you can change at any point from one to another with barely any downtime.

After syncing your consensus client, the execution client starts its synchronization process. This can take a few hours, so patience is essential. For clarity or troubleshooting, consult your execution client's logs.

2. Creating validator keys for Gnosis Chain

info

This guide will use the Gnosis Wagyu keygen tool to generate your validator keys. This is a fork of the Wagyu Keygen tool for Ethereum mainnet.

What are all these keys?

🔒 Validator keys will be online (stored in your Dappnode) and signing the blocks of the Gnosis Chain. You will create them from a mnemonic phrase, which is important to keep safe as it's the only way to regenerate these validator keys if you lose them.

🛡️ The damage of getting your mnemonic phrase compromised has been reduced dramatically since withdrawals have been activated, as you can create the keystores with a set withdrawal address and nobody can change that after, even if they get to your mnemonic phrase. Nevertheless, if you lose the keystore and the mnemonic, you will not be able to sign an exit message and you will be forced to validate forever.

🔑 Withdrawal address this brings us to the withdrawal address, which is the address that will receive all the balance above 1 GNO while your validator is active, and all your balance above 0 GNO when you exit the validator set. You need to keep this address safe as it's where your GNO will go, and cannot be changed.

1) Download the latest release of the Gnosis Wagyu Key Gen from here.

2) Disconnect from the internet, so it will be harder to have any leaks on the information you use, and open the Gnosis Wagyu keygen tool. You will be given 2 options, either create a new mnemonic or import an existing mnemonic. The GUI is very user friendly and explains all steps along the way.

Gnosis Wagyu - 1st screen

You will be shown your Mnemonic Phrase. Keep it safe, as it is used to recreate the validator keys! We recommend copying it in an encrypted volume or in paper stored in a safe place.

To ensure that you have copied it somewhere, it will ask you to type it again.

Gnosis Wagyu - 2nd screen

Choose 1) How many keys you want to create, 2) the password to protect the keys and 3) the Withdrawal Address where your Consensus Layer profits will be sent.

Gnosis Wagyu - 3rd screen

Select a folder where to save the keys.

Gnosis Wagyu - 4th screen

Wait for the keys to be generated.

Gnosis Wagyu - 5th screen

And you are done! You will find your keys in the folder you selected.

Gnosis Wagyu - 6th screen

You are now done with the key generation process, and your generated keys and deposit data are in the folder/directory chosen, and displayed at the top of the final page.

tip

💡 Want to learn more about Ethereum keys and key generation?💡Learn more

Now that you’ve generated your deposit data and keystores, go ahead and upload your keystores to Web3Signer Gnosis, the package that you installed during step 1.

Return to the Dappnode UI and navigate to the Stakers > Gnosis Chain menu. Your Web3Signer will have a link saying Upload Keystores . If it doesn’t, make sure that you have waited enough time since step 1 for all the packages to be installed (around 5 minutes) and refresh the page.

Then click on the Import Keystores button on the lower part of the Web3Signer Gnosis UI.

Here browse for the keystore file(s) you generated in the previous step and enter them along with the password you chose to secure your keystores.

You are now ready to fund these validator accounts and start validating!

3: Deposit GNO into the Gnosis Chain deposit contract

The final step is to fund your validator with 1 GNO necessary to register as a validator and start receiving validation work!

To do this, you will need to send 1 GNO to the Gnosis Chain deposit contract.

Navigate to the Gnosis Chain deposit launchpad

Gnosis Launchpad 1

Under the Deposit tab, you'll find a box where you can import the deposit_data.json file you generated in Step 2. You can find it in the same folder you chose when generating the keys.

Gnosis Launchpad 2

The app will validate the json file and list the number of validator deposits you are making and the required GNO to deposit. Click Deposit to continue.

Gnosis Launchpad 3

Check that you understand the risks and ensure you are interacting with the correct contract before proceeding.

Gnosis Launchpad 4 Gnosis Launchpad 5

The moment to do the deposit is here! Connect your wallet with the GNO's you'll be depositing, and follow the steps to send the GNOs to the deposit contract!

danger

Please review the deposit address in the next step! MAKE SURE YOU ARE SENDING YOUR GNO FUNDS TO THE RIGHT DEPOSIT ADDRESS!

Gnosis Launchpad 6 Gnosis Launchpad 7

After the deposit is gone, you will be able to check the progress of your deposit by searching for your validator key in the Gnosis Beacon Chain Explorer, which is a fork of the Ethereum Beaconcha.in explorer. You can get a direct link to this by clicking on the View in Beaconcha.in button in the upper, right corner of the Dappnode Web3signer Gnosis UI, where you uploaded the keystores.

Remember: Embarking on the staking journey requires diligence. Always keep abreast of developments and make informed decisions.

Withdrawing my GNO

Once you want to finish your staking journey, you will need to withdraw your GNO from the Gnosis Chain. This is a 2 step process of exiting the validator from the Dappnode UI and claiming the GNO from the deposit contract.

Gnosis Chain withdrawals ≠ Ethereum withdrawals

Because the native token of Gnosis Chain is xDAI (you pay fees in it), but the staking token is GNO, withdrawals work differntly than in the Ethereum chain and do not happen automatically. You must claim your withdrawn tokens from the Deposit Contract. More info here.

1. Exit the validator from the Dappnode UI

danger

Make sure that your validator have a 0x01 type withdrawal address before exiting your validator or you will lose your funds. In the consensus explorer, if your withdrawal address shows as an address that starts with a 0x00 it means that your withdrawal address needs to be upgraded to a 0x01, please refer to the guide in the Gnosis Chain documentation. If your validator already shows a 0x01 address, you DON'T need to follow these steps.

Gnosis Withdrawals

Navigate to the Stakers > Gnosis Chain menu and click on the Upload Keystores button on the Web3Signer card. Once you are in the Web3Signer UI, select the validators you want to exit and click on the Exit Validator button on the top right part of the UI. Follow the instructions and type "I want to exit", followed by Exit.

Now the message to exit will be broadcasted to the network.

Withdrawal queue

Your validator will not exit immediately. It will be queued to exit and you can track when it's due in the Gnosis Beacon Chain Explorer. Even then, you will need to claim your GNO from the deposit contract as per the next step.

2. Claim your GNO from the deposit contract

As soon as your withdrawal has been processed by the Beacon Chain, you will be able to claim your GNO from the deposit contract. You can claim from any of your wallets that hold xDAI to pay gas fees.

  1. Go to the Gnosis Chain Deposit Contract page in Gnosisscan.io and navigate to the Write as Proxy tab,

  2. Connect your wallet with the Connect to Web3 button and then locate the 3. claimWithdrawal function.

  3. Type your withdrawal address in the field and click Write. A transaction should trigger on your wallet. Approve it and wait for it to be included in a block.

Claiming from the Smart Contract

Voilà! Your GNO will appear on your withdrawal address!