STAKING

WARNING! Be extremely cautious in asking for help staking your Energi. Do NOT install TeamViewer or any screen sharing software. Do NOT respond to messages or e-mails from anyone offering support, even if they appear to be legitimate. Scammers can appear indistinguishable from our moderators, community leaders, and Energi Core staff. Do NOT run any “dump” commands in the debug console for anyone! Energi Core staff and moderators will NEVER ask for your personal info, passwords, private keys, or instruct you to run any “dump” commands. Your coins are YOUR responsibility. BE CAREFUL!

Le 26 février 2019, vers 17 h UTC, la hauteur exacte du bloc où s’est produite la transition était 437600. Energi (NRG) est maintenant complètement transitionnée vers un modèle Proof-of-Stake (PoS). Nous sommes ravis d’avoir maintenant une méthode qui permettra aux détenteurs de NRG de staker facilement leurs pièces et de gagner des récompenses !

Cet article sera un guide étape par étape sur la façon dont vous pouvez staker vos Energi avec le porte-monnaie Energi Core (ces étapes sont pour les versions PC et Mac du portefeuille). Avant de staker vos pièces de monnaie, assurez-vous de télécharger le dernier logiciel de porte-monnaie afin d’éviter tout problème de synchronisation avec le réseau. Vous pouvez trouver la dernière version sur notre page de téléchargement : Téléchargements/

Comment staker ses NRG

 

Étape 1

Ouvrez votre porte-monnaie Energi Core et assurez-vous qu’il est entièrement synchronisé avec le réseau et crypté (fortement recommandé).

Étape 2

Confirmez que votre adresse Energi a un solde de 1 NRG ou plus (un minimum de 1NRG dans votre adresse Energi est requis pour utiliser le staking)

UTXO est une sortie de transaction non dépensée qui peut être facilement consultée dans l’onglet Envoyer via la fonctionnalité de contrôle des pièces (désactivée par défaut) ou via la commande liststakeinputs” depuis v2.1.1.1.

Le montant de stake particulier est utilisé comme multiplicateur pour la cible de hachage de type PoW.

Étape 3

Une fois votre portefeuille entièrement synchronisé, allez dans les ‘Réglages’.

 

Étape 4

Dans ‘Réglages’, sélectionnez ‘Start Staking’.

Étape 5

Une fois que vous avez sélectionné ‘Start Staking’, vous devrez entrer votre phrase de passe. Si vous n’avez pas encore créé de phrase de passe, il est fortement recommandé d’en utiliser une pour sécuriser vos pièces Energi et les rendre accessibles uniquement par vous.

Étape 6

Une fois cela terminé, l’icône ‘flèche’ en bas à droite devrait bientôt passer au vert et devrait changer le message de ” Staking désactivé ” à ” Staking activé ” au survol du curseur.

Il est nécessaire que votre porte-monnaie reste ouvert et connecté au réseau pour obtenir des récompenses.

 

Ce message s’affiche si le staking n’a pas été activé.
 

Ce message s’affiche si le staking a été activé

Félicitations ! 
Vous êtes maintenant en train de staker vos Energi et vous serez éligible pour gagner des récompenses!

Le Proof-of-Stake d’Energi distribuera 10% des nouvelles émissions d’Energi par mois aux détenteurs de stakes. Pour déterminer combien les participants peuvent gagner en stakant, prenons les chiffres suivants comme exemples. Si un utilisateur stake 5 000 NRG et qu’il y a un total de 2 000 000 de NRG collectés, multipliez par 10 % de l’Energi nouvellement émis (100 000 NRG) pour déterminer le rendement mensuel :

(5 000 NRG / 2 000 000 NRG) * 100 000 NRG = Rendement mensuel

C’est un rendement annuel étonnant de 60%. C’est sans doute le taux de rendement le plus élevé qu’une cryptomonnaie puisse offrir à ses clients.

Pour calculer les bénéfices actuels possibles, veuillez utiliser le calculateur afin de déterminer combien d’NRG peuvent être récoltés avec le staking : https://explorer2.energi.network/


VPS Staking Guide



Quick Guide


On your VPS run this to get VPS staking setup

bash -ic “$(wget -4qO- -o- raw.githubusercontent.com/mikeytown2/masternode/master/stake/energid.sh)” ; source ~/.bashrc

O and o are both the letter and not the number if you are typing this out.

Bitvise is highly recommended in order to use copy/paste (for windows).

You can view the script here https://github.com/mikeytown2/masternode/blob/master/stake/energid.sh.

At the prompts reply with y (recommended).

What you need


  • A Ubuntu 16.04 OR 18.04 Virtual Private Server (VPS) for running the staking node
  • Be sure to setup 2 factor auth for vultr; see https://my.vultr.com/settings/twofactor/
  • A way to use SSH ( Bitvise for windows or Terminal for Mac)
  • Energi Wallet ( Windows, Mac, Linux)
  • Help can be found on the Discord chat. BE CAREFUL; only trust help via the ticket support system. Usernames are not unique on discord so only trust green, yellow, blue, and red users (people with roles) IN the Energi Discord server.

  • Windows Setup


    Click here for the Windows Setup:

    1.0 Wallet Prep.

    Enable coin control features. In the desktop wallet go to Settings -> Options -> Wallet and make sure Enable coin control features is checked and click OK.


    2.0 Next you’ll need a VPS.

    Any VPS provider will work; in this example vultr will be used. Get a VPS from here https://www.vultr.com/?ref=7876413-4F

    Once signed up go here https://my.vultr.com/deploy/

    1. Choose Server
    2. Select a location
    3. Select Ubuntu 18.04
    4. Select $3.50
    5. Click deploy now button

    Once deployed (wait 2 minutes)



    3.0 Login to VPS via SSH.

    Click the Cloud Instance link on the left or the Manage link/Server Details on the right

    Under IP click the copy icon copy icon


    Open up Bitvise and paste in the IP of your VPS into the Host field under Server on the left side. To the right of that in the Username field put in root and change Initial method to keyboard-interactive.
    Click the login button

    Click Accept and Save for host key verification

    Go back to the vultr Server Information page and under password click the copy icon copy icon

    Then paste in the password from vultr.



    4.0 VPS Steps

    Copy the following line and paste into your remote terminal and press enter (right click to paste in Bitvise) (How to connect to your VPS (3.0)).

    bash -ic "$(wget -4qO- -o- raw.githubusercontent.com/mikeytown2/masternode/master/stake/energid.sh)" ; source ~/.bashrc  
    

    O and o are both the letter and not the number if you are typing this out.
    Bitvise is highly recommended in order to use copy/paste.
    You can view the script here https://github.com/mikeytown2/masternode/blob/master/stake/energid.sh

    Type in y when it asks to “Proceed with the script (y/n)?:”


    This will take about 10 minutes to update Ubuntu 18.04 to the latest package versions. Please wait for Linux to be updated.

    Type in y when it asks to “Make it so only the above list of users can login via SSH (y/n)?:”

    Scan in your QR code and confirm it works by typing in the 6 digit code.

    Write down the emergency scratch codes and then type in y to use this 2 factor code.

    Type in y when it asks to “Install a new energid node on this vps (y/n)?:”

    Give it time to install the node on your Linux box


    5.0 Upload your wallet.dat to the VPS

    This script uses https://send.firefox.com/ to transfer files from your desktop computer onto the vps. All files are encrypted before being uploaded and decrypted on the client after downloading. The encryption key is never sent to the server.

    You should be at this point now.

    Shutdown the energi wallet.

    Open up the energicore folder.
    windows key + r
    explorer.exe %appdata%\energicore

    If you see the database folder; please turn off the energi wallet

    Please go to https://send.firefox.com/

    Select wallet.dat and drag it into your browser to upload it

    Click the upload button and then copy link

    Then go to the ssh terminal and paste in (right click) the link and press enter.

    Fill in the password you set on send.firefox.com if you set one.

    Wait for the wallet to load

    Enter in your wallet’s password


    6.0 Script will end with

    Script will end with the amount of energi in the wallet.
    The amount of energi that is staking.
    The staking status.


    7.0 Edit energi.conf on your desktop

    windows key + r
    notepad.exe %appdata%\energicore\energi.conf
    and add in
    staking=0


    8.0 Notes

    You can re-run the staking script to continue where you left off OR to upload a different wallet.dat file.

    If you messed up and want to start over with a fresh VPS instance go to https://my.vultr.com/ click on the three dots to the right … and select Server Reinstall.


    Mac Setup


    Click here for the Mac Setup:

    1.0 Wallet Prep.

    Enable coin control features. In the desktop wallet go to Energi -> Preferences -> Wallet and make sure Enable coin control features is checked and click OK.


    2.0 Next you’ll need a VPS.

    Any VPS provider will work; in this example vultr will be used. Get a VPS from here https://www.vultr.com/?ref=7876413-4F

    Once signed up go here https://my.vultr.com/deploy/

    1. Choose Server
    2. Select a location
    3. Select Ubuntu 18.04
    4. Select $3.50
    5. Click deploy now button

    Once deployed (wait 2 minutes)


    3.0 Login to VPS via SSH.

    Click the Cloud Instance link on the left or the Manage link/Server Details on the right

    Under IP click the copy icon copy icon

    Finder -> Menubar (top of screen) -> Go -> Utilities. Open Terminal.
    Then from the menubar to Shell -> New Remote Connection.

    Select Secure Shell (ssh); then click the right +. In the field paste in the ip address of your VPS.

    Click the Connect button.

    Type in yes here

    Go back to the vultr Server Information page and under password click the copy icon copy icon

    Then paste in the password from vultr and press enter. Note that there will not be any ******** when you paste in the password.


    4.0 VPS Steps

    Copy the following line and paste into your remote terminal and press enter (How to connect to your VPS (3.0)).

    bash -ic "$(wget -4qO- -o- raw.githubusercontent.com/mikeytown2/masternode/master/stake/energid.sh)" ; source ~/.bashrc  
    

    O and o are both the letter and not the number if you are typing this out.
    You can view the script here https://github.com/mikeytown2/masternode/blob/master/stake/energid.sh

    Type in y when it asks to “Proceed with the script (y/n)?:”


    This will take about 10 minutes to update Ubuntu 18.04 to the latest package versions. Please wait for Linux to be updated.

    Type in y when it asks to “Make it so only the above list of users can login via SSH (y/n)?:”

    Scan in your QR code and confirm it works by typing in the 6 digit code.
    You’ll want to make the terminal window bigger here to more easily scan in the QR code.

    Write down the emergency scratch codes and then type in y to use this 2 factor code.

    Type in y when it asks to “Install a new energid node on this vps (y/n)?:”

    Give it time to install the node on your Linux box

    5.0 Upload your wallet.dat to the VPS

    This script uses https://send.firefox.com/ to transfer files from your desktop computer onto the vps. All files are encrypted before being uploaded and decrypted on the client after downloading. The encryption key is never sent to the server.

    You should be at this point now.

    Shutdown the energi wallet.

    Open up the energicore folder (~/Library/Application Support/EnergiCore).
    Terminal -> Menubar (top of screen) -> Shell -> New Window -> New Window with Settings – Basic
    Type/Paste in

    open "${HOME}/Library/Application Support/EnergiCore"
    

    If you see the database folder; please turn off the energi wallet

    Please go to https://send.firefox.com/

    Select wallet.dat and drag it into your browser to upload it

    Click the upload button and then copy link

    Then go to the ssh terminal and paste in the link and press enter.

    Fill in the password you set on send.firefox.com if you set one.

    Wait for the wallet to load

    Enter in your wallet’s password

    6.0 Script will end with

    Script will end with the amount of energi in the wallet.
    The amount of energi that is staking.
    The staking status.

    7.0 Edit energi.conf on your desktop

    Terminal -> Menubar (top of screen) -> Shell -> New Window -> New Window with Settings – Basic
    Type/Paste in

    open -a TextEdit "${HOME}/Library/Application Support/EnergiCore/energi.conf"  
    

    and add in
    staking=0

    8.0 Notes

    You can re-run the staking script to continue where you left off OR to upload a different wallet.dat file.

    If you messed up and want to start over with a fresh VPS instance go to https://my.vultr.com/ click on the three dots to the right … and select Server Reinstall.


    Troubleshooting / FAQ


    How do I backup my wallet?

    Make sure it’s been encrypted with a password and then store the wallet.dat file on Dropbox or Google Drive. Make sure the cloud backup provider has 2 factor authentication enabled (Google, Dropbox). On windows the wallet can be found in the %appdata%/energicore directory (windows key + r %appdata%/energicore and if that doesn’t work try %userprofile%\AppData\Roaming\energicore). On Mac it can be found in the ~/Library/Application Support/EnergiCore directory; Finder -> Menubar (top of screen) -> Go -> Utilities, open Terminal, type in open ~/Library/Application\ Support/EnergiCore.

    You can also backup via dumpwallet.
    Go to tools -> debug console and type in dumpwallet enrg.txt.
    enrg.txt is usually put in the same folder as the energi wallet executable.
    Print this out and keep it in a safe place.

    How do I recover a deleted wallet.dat

    Download Recuva: https://www.ccleaner.com/recuva/download/standard
    Once you install run it and select all files

    Search in the
    C:\Users\username\AppData\Roaming\EnergiCore
    folder replacing username with the correct path.

    Check enable deep scan

    Wait for it to scan your hard drive and then look for any files with wallet.dat in the name.

    How do I recover a hard drive that doesn’t work at all

    If the drive still spins up but won’t boot up and you suspect very minor damage SpinRite might be able to help.
    https://www.grc.com/cs/prepurch.htm

    If your drive needs a lot of help checkout professional data recovery services like this one.
    https://rossmanngroup.com/data-recovery-service-nyc/

    Edit energi.conf

    Tools -> Open wallet configuration file.

    If the above doesn’t work you can do this:
    Windows:
    windows key + r
    notepad %appdata%/energicore/energi.conf
    Copy Paste the above line into the run dialog box.

    Mac:
    go to Finder -> Menubar (top of screen) -> Go -> Utilities, open Terminal, type in
    open -a TextEdit ~/Library/Application\ Support/EnergiCore/energi.conf
    If you already have a terminal window open and want another one go to the Menubar (top of screen) -> new window -> new windows with profile – basic. Then paste in the above command.

    Use the snapshot/bootstrap/fast-sync on windows

    Automatic

    1. Close out the Energi Wallet.
    2. Download and run this file: energi-qt.bat.
    3. Wait for the energi wallet to start up again (give it about 10 min to start after running the bat file).

    Manual

    1. Download the latest snapshot here
    2. Close out the Energi Wallet.
    3. You’ll need 7zip to open up the tar.gz file. Go to the energicore folder by pressing the windows key + r and then pasting in this
    explorer.exe %appdata%\EnergiCore
    

    and if that doesn’t work try pasting in this

    explorer.exe %userprofile%\AppData\Roaming\EnergiCore
    
    1. And then delete everything in the energicore folder except for
  • the backups folder
  • wallet.dat
  • masternode.conf
  • energi.conf
    1. Extract the contents of the archive into the EnergiCore folder.
    2. Start wallet up again.
    Use the snapshot/bootstrap/fast-sync on mac

    Automatic

    1. Close out the Energi Wallet.
    2. Go to the Finder -> Menubar (top of screen) -> Go -> Utilities, open Terminal, type/paste in
    bash -i <( curl -sL https://raw.githack.com/mikeytown2/masternode/master/qt/energi-qt-mac.sh )
    
    1. Wait for the energi wallet to start up again (give it about 10 min to start after running the above command).

    Manual

    1. Download the latest snapshot here
    2. Close out the Energi Wallet.
    3. Open up the EnergiCore folder Go to the Finder -> Menubar (top of screen) -> Go -> Utilities, open Terminal, type/paste in
    open "${HOME}/Library/Application Support/EnergiCore"
    
    1. And then delete everything in the energicore folder except for
  • the backups folder
  • wallet.dat
  • masternode.conf
  • energi.conf
    1. Extract the contents of the archive into the EnergiCore folder.
    2. Start wallet up again.
    I’ve been locked out of the VPS

    You get one of these errors when trying to login via Bitvise:
    “Network error: Connection timed out”
    “Network error: Software caused a connection abort”

    Go here to get your IP address: http://ipinfo.io/ip. Then you’ll need to login to the box via the “view console” button on the vultr manage page. once logged in type this in

    denyhosts_unblock YOUR.DESKTOP.IP.ADDRESS
    

    Replace “YOUR.DESKTOP.IP.ADDRESS” with the numbers found on http://ipinfo.io/ip

    Useful Websites

    Energi Website
    https://www.energi.world/

    Block Explorer
    https://explore.energi.network/
    https://explore2.energi.network/

    Coinmarketcap
    https://coinmarketcap.com/currencies/energi/


    Appendix


    Useful commands to run on your VPS:

    Get the staking status
    energi-cli getstakingstatus

    Get the total number of NRG coins the wallet has
    energi-cli getbalance

    Get the total number of NRG coins that will be staked
    energi-cli liststakeinputs balance

    Get how long the daemon has been running for in seconds.
    energi-cli uptime

    Compare the local blockcount and the explorer’s blockcount.
    energi-cli blockcheck

    Download the blocks and chainstake folders; fairly close to a new install. Will get the node back on the correct chain.
    energi-cli dl_blocks_n_chains

    Check github for a new version; and update if there is a new version.
    energi-cli update_daemon

    Delete the node off of the VPS.
    energi-cli remove_daemon

    Restart the daemon.
    energi-cli restart

    Watch the last 20 entries in the daemon log
    energi-cli daemon_log tail 20 watch

    Get the last 2 entries in the daemon log that deal with the node startup and shutdown
    energi-cli daemon_log starts 2 20


    FAQ

    https://www.energi.world/faq/#staking