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=RPC_ENDPOINT
- RPC_ENDPOINT — your Ethereum node RPC endpoint.
# ./prysm.sh beacon-chain --http-web3provider=https://nd-123-456-789.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531
Latest Prysm version is v1.0.4.
Downloading beacon email@example.com 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.