To run a Beacon node on the Eth2 mainnet, you must have an Eth1 node running on the Eth1 mainnet and connected to the Eth2 Beacon node.
This article gives an example of connecting an Eth1 node deployed with Chainstack to the Eth2 Beacon node implemented by Prysm.
- Create an account on Chainstack if you don't have one.
- Deploy an Eth1 mainnet node. See Join a public network.
- Get the RPC endpoint of the deployed node and the access credentials. See View node access and credentials.
- Clone the Prysm repository to your local machine:
git clone https://github.com/prysmaticlabs/prysm.git
- Change to the repository directory and run:
./prysm.sh beacon-chain --http-web3provider=https://USERNAME:PASSWORD@RPC_ENDPOINT
- USERNAME — your Ethereum node access username.
- PASSWORD — your Ethereum node access password.
- RPC_ENDPOINT — your Ethereum node RPC endpoint.
# ./prysm.sh beacon-chain --http-web3provider=https://user-name:email@example.com
Latest Prysm version is v1.0.4.
Downloading beacon firstname.lastname@example.org to /root/prysm/dist/beacon-chain-v1.0.4-linux-amd64 (automatically selected latest available version)
This will start and run Prysm's Beacon node connected to the Eth1 node deployed on Chainstack.