Prysm is a Go implementation of Ethereum protocol with a focus on usability, security, and reliability. Prysm is developed by Prysmatic Labs, a company with the sole focus on the development of their client. Prysm is written in Go and released under a GPL-3.0 license.
Downloading binaries is often faster and more convenient.
Building from source code can offer better compatibility and is more aligned with the spirit of FOSS (free open source software).
Option 1 - Download binaries
Run the following to automatically download the latest binaries.
cd $HOMEprysm_version=$(curl-f-shttps://prysmaticlabs.com/releases/latest)file_beacon=beacon-chain-${prysm_version}-linux-amd64file_validator=validator-${prysm_version}-linux-amd64curl-f-L"https://prysmaticlabs.com/releases/${file_beacon}"-obeacon-chaincurl-f-L"https://prysmaticlabs.com/releases/${file_validator}"-ovalidatorchmod+xbeacon-chainvalidator
Verify Prysm was built properly by displaying the help menu.
bazelrun//beacon-chain----help
Install the binaries.
sudocp-a $HOME/git/prysm/usr/local/bin/prysm
3. Setup and configure systemd
Create a systemd unit file to define your consensus.service configuration.
sudonano/etc/systemd/system/consensus.service
Depending on whether you're downloading binaries or building from source, choose the appropriate option. Paste the following configuration into the file.
Replace<0x_CHANGE_THIS_TO_MY_ETH_FEE_RECIPIENT_ADDRESS> with your own Ethereum address that you control. Tips are sent to this address and are immediately spendable.
Not staking? If you only want a full node, delete the whole lines beginning with
--suggested-fee-recipient
To exit and save, press Ctrl + X, then Y, then Enter.
Run the following to enable auto-start at boot time.