Prysm
Prysm is a popular client that combined with Erigon can be used for staking. The necessary steps to run Erigon with Prysm are listed here following:
-
Start Erigon with the flag
--externalcl
to allow a external Consesus Layer:./build/bin/erigon --externalcl
-
Install Prysm by following the official instructions.
-
Prysm must fully synchronize before Erigon can start syncing, since Erigon requires an existing target head to sync to. The quickest way to get Prysm synced is to use a public checkpoint synchronization endpoint from the list at https://eth-clients.github.io/checkpoint-sync-endpoints.
In order to communicate with Erigon the execution endpoint
<erigon address>:8551
must be specified, where<erigon address>
is either//localhost
or the IP address of the device running Erigon.Prysm must point to the JWT secret automatically created by Erigon in the datadir directory (in the below example the default data directory is used).
./prysm.sh beacon-chain --execution-endpoint=http://localhost:8551 --mainnet --jwt-secret=/home/usr/.local/share/erigon/jwt.hex --checkpoint-sync-url=https://beaconstate.info --genesis-beacon-api-url=https://beaconstate.info
If your Prysm is on a different device, add
--authrpc.addr 0.0.0.0
(Engine API listens on localhost by default) as well as--authrpc.vhosts <CL host>
.