This tutorial shows how to stake a validator with Stakehouse using the Wagyu Keygen tool.
To install the tool head over to Wagyu’s website and download the tool depending on the operating system.
Once the tool is downloaded, you will be brought to the homepage.
In the top-right corner, select the network for which the keys should be generated. This tutorial shows the staking on the Goerli/Prater network.
After confirming the network, click on the “Create new recovery phrase” button. Once the below screen appears, click the “Create” button to start the process.
After a few seconds, the tool will generate a mnemonic phrase. Please keep this phrase safe.
Now, enter the recovery phrase. Click on the “Check” button to continue.
Then create a password that would protect the Keystore password. It is crucial to keep the password safe.
After entering the password, click on the “Use Advanced Inputs” button and the tool will prompt you to enter your “Ethereum Withdrawal Address”. Since, the staking process happens with the Stakehouse Protocol, head over to Stakehouse Deployment Contract Address and copy the “Account Manager” address (Make sure to choose the address for the correct network). The account manager address will be the Ethereum Withdrawal Address for this key.
The tool again asks for the Keystore password as confirmation. After entering the password click on “Next” to move to the next screen.
Click on the “Browse” button to choose the location for the files. The generated Keystore and deposit_data file will be saved in the chosen location. After selecting the location, click on “Create” to start generating the keys.
Now that the Keystore file and deposit_data file is generated, head over to the Stakehouse Protocol dApp. Start the process of creating a validator by clicking on either the “Stake” or “Create a Validator” buttons.
Click on the 3 dots (…) on the top right and enable the “Expert Mode”.
Click the “Turn On Expert Mode” button to confirm.
Since the files are already generated using the Wagyu Keygen tool, click on the “Continue” button to move on to the next screen
On the “Validator Registration” screen, click on the “Choose file” button to upload the deposit_data file generated using the Wagyu Keygen tool.
When the deposit_data file is uploaded, a confirmation pop-up appears. Click on the “Approve Transaction” button.
The dApp will ask you to confirm the transaction. This registers the validator’s initials in the Stakehouse Protocol
Next, upload the Keystore file generated by Wagyu Keygen.
Please note that the Keystore file is not being stored anywhere. This process is used to authenticate the BLS Keystore, meaning the Stakehouse protocol verifies if the user owns the validator credentials.
Enter the password that was previously entered to protect the Keystore file.
Now click on the “Deposit” button to send 32 ETH to the Ethereum deposit contract and stake a validator
Verify that the BLS Public Key shown in the pop-up matches the BLS Public Key in the Keystore file. Then click on the “Confirm” button to proceed.
Next, confirm the transaction to send 32 ETH.
Make sure that all the addresses are correct. The contract address shown under the “Contract Interaction” should be that of the “Transaction Router” smart contract of the Stakehouse Protocol.
The transaction router will route your ETH to the Ethereum deposit contract for the specified network.
Now that the transaction is successful. To find out more on how to set up a validator click here.
Join the Blockswap Discord for the latest updates, announcements, and community support.