mkdir /apps/prysm && cd /apps/prysm
/apps/prysm/prysm.sh beacon-chain --datadir=/apps/prysm/beacon-chain
/apps/prysm/prysm.sh beacon-chain --datadir=/apps/prysm/beacon-chain
/apps/prysm/prysm.sh validator accounts create --keystore-path=/apps/prysm/validator/ --enable-account-metrics
You will be prompted for a passphrase. This passphrase secures your keystore. For this example I will set mine to 123
.
========================Raw Transaction Data=======================
0x228951180000000000000000000000000000000000000....
===================================================================
This hex string is important data that we will need to send as part of our staking deposity txn. So, copy the value between the ===
and past it to a file somewhere, we’ll be using it again soon.
path
value should match the keystore path you set in step 1, and the passphrase value should match the passphrase you set in step 1.
cat >> /apps/prysm/validator/keystore.json << EOF
{
"path": "/apps/prysm/validator",
"passphrase": "123"
}
EOF
Now let’s launch our validator with the following command. Make sure to leave this terminal open or else the process will be killed. Note: The --enable-account-metrics
option will allow our logs to be read by Prometheus - more on that later.
/apps/prysm/prysm.sh validator --keymanager=keystore --keymanageropts=/apps/prysm/validator/keystore.json --enable-account-metrics
Okay, so far we have
Raw Transaction Data
needed to send as part of our staking depositThe final thing we need to do is send our 32 ETH to the staking contract on the Goerli testnet. As you may know, 32 ETH is the minimum number of Ether required to stake on the Eth2 chain. To do this, we can use any wallet software that allows us to send ETH to Goerli testnet with a hex. For this demo we’ll use Metamask.
0x5cA1e00004366Ac85f492887AAab12d0e6418876
with you hex text from the step above pasted in to the Hex Data
field.
To this message:
And after several hours of waiting, the beacon state will update and you’ll see this