description |
---|
This section outlines the step-by-step process found on prylabs.net to submit a deposit and initialise a validator for participation in the testnet. |
This documentation portal is depreciated and no longer maintained. Please visit docs.prylabs.network for the most recent iteration.
To begin, follow the instructions found in the installation section of the Getting Started guide to fetch and install Prysm with either Docker or Bazel.
On step 2, you will be asked to link a wallet address to your validator with either the Metamask browser extension (recommended) or Portis. Select your preferred platform and click through the steps presented.
The wallet is scanned for the required amount of Göerli ETH after being linked. If the wallet does not have sufficient funds, you will be given the option to receive the required GöETH from our faucet.
Step 3 requires running a command to generate a public / private keypair for your validator, as well as deposit data to submit on the prylabs.net page. Depending on your platform, issue the appropriate command from the examples below.
docker run -it -v $HOME/prysm/validator:/data \
gcr.io/prysmaticlabs/prysm/validator:latest \
accounts create --keystore-path=/data --password=changeme
docker run -it -v $HOME/prysm:/data gcr.io/prysmaticlabs/prysm/validator:latest accounts create --keystore-path=/data --password=changeme
bazel run //validator -- accounts create --keystore-path=$HOME/beacon-chain --password=changeme
This command will output a Raw Transaction Data
block:
Method 1: Copy and paste the deposit data into the field on prylabs.net:
Method 2: Users may also choose to submit the required 3.2 GöETH along with the data directly to the current deposit contract **(found here). To enable the hex data field on the Send page in Metamask, click your wallets avatar > Settings > Advanced > toggle 'Show hex data'.
{% hint style="info" %} If you have already started and syncronised your beacon node by following the Getting Started guide section on the topic, this portion can be skipped. {% endhint %}
Open a terminal window. Depending on your platform, issue the appropriate command from the examples below to start the beacon node.
docker run -it -v $HOME/prysm/beacon:/data -p 4000:4000 \
gcr.io/prysmaticlabs/prysm/beacon-chain:latest \
--datadir=/data
docker run -it -v $HOME/prysm/beacon:/data -p 4000:4000 gcr.io/prysmaticlabs/prysm/beacon-chain:latest --datadir=/data
bazel run //beacon-chain -- --datadir=$HOME/beacon-chain
The beacon node will spin up and immediately begin communicating with the Prysm testnet, outputting data similar to the image below.
The process of syncronising may take a while; the incoming block per second capacity is dependent upon the connection strength, network congestion and overall peer count.
{% hint style="danger" %} The beacon node must be completely synced before attempting to initialise a validator client, otherwise the validator will not be able to complete the deposit and funds will be lost. {% endhint %}
Open a second terminal window. Depending on your platform, issue the appropriate command from the examples below to start the validator.
docker run -it -v $HOME/prysm/validator:/data --network="host" \
gcr.io/prysmaticlabs/prysm/validator:latest \
--beacon-rpc-provider=127.0.0.1:4000 \
--keystore-path=/data \
--password=changeme
docker run -it -v $HOME/prysm/validator:/data --network="host" gcr.io/prysmaticlabs/prysm/validator:latest --beacon-rpc-provider=127.0.0.1:4000 --keystore-path=/data --password=changeme
bazel run //validator -- --keystore-path=$HOME/beacon-chain --password=changeme
Once both the beacon node and validator client are successfully running, make your deposit by clicking the button and following the steps presented in your wallet.
It will take a while for the nodes in the network to process a deposit. Once the node is active, the validator will immediately begin performing its responsibilities.
The validator is now awaiting its first assignment from the network. This should only take a few minutes, and an indication will be displayed on both the prylabs.net page as well as the validator client.
Congratulations, you are now fully participating in the Prysm testnet! ♡
Still have questions? __Stop by our Discord for assistance!