Switch from Prysm
All consensus clients read the same keystores (EIP-2335) and the same slashing protection file (EIP-3076). Switching away from Prysm is the same procedure as moving to a new machine: sync the new client's beacon node, stop the Prysm validator for good, wait at least 2 epochs, then import keys and slashing protection into the new client.
To move to Prysm from another client, see Switch to Prysm.
Switching clients doesn't touch your validators on chain. They keep the same keys, index, and balance, and stay active. They only miss rewards for the few epochs between stopping the old client and starting the new one.
Never run the old and new validator clients with the same keys at the same time. Stop and disable the old one, and prove it's off, before the new one starts.
Before you begin
- Your Prysm wallet directory and its password, or your original keystores and their password, or your mnemonic to regenerate them.
- Plan the execution client: one execution client serves one beacon node. Either run a second one while the new beacon node syncs, or move your existing one to the new beacon node (same
jwt.hex) and accept the downtime. - If both beacon nodes run on the same machine, they need different P2P ports. Prysm uses TCP 13000, UDP 12000, and UDP 13000; most other clients use 9000. See Ports, peers and router setup.
Steps
-
Sync the new client's beacon node, without its validator client, and check it's synced. The Beacon API is standard, so this works with any client:
curl http://localhost:<ITS_HTTP_PORT>/eth/v1/node/syncingcurl.exe http://localhost:<ITS_HTTP_PORT>/eth/v1/node/syncing -
Stop and disable the Prysm validator, then check it's off; see Move to a new machine.
-
Export slashing protection and keys from Prysm, then delete the keys from the Prysm wallet:
./prysm.sh validator slashing-protection-history export \--datadir=<PRYSM_VALIDATOR_DATADIR> \--slashing-protection-export-dir=<EXPORT_DIR>./prysm.sh validator accounts backup \--wallet-dir=<WALLET_DIR> \--backup-dir=<EXPORT_DIR>./prysm.sh validator accounts delete \--wallet-dir=<WALLET_DIR>You get
<EXPORT_DIR>/slashing_protection.jsonand<EXPORT_DIR>/backup.zip..\prysm.bat validator slashing-protection-history export `--datadir=<PRYSM_VALIDATOR_DATADIR> `--slashing-protection-export-dir=<EXPORT_DIR>.\prysm.bat validator accounts backup `--wallet-dir=<WALLET_DIR> `--backup-dir=<EXPORT_DIR>.\prysm.bat validator accounts delete `--wallet-dir=<WALLET_DIR>You get
<EXPORT_DIR>\slashing_protection.jsonand<EXPORT_DIR>\backup.zip.Unzip
backup.zipto get the keystores; their password is the backup password you chose. If you still have your original keystores, you can use those instead. -
Wait at least 2 epochs and check that a block explorer shows missed attestations.
-
Import slashing protection and keys into the new client, with its validator client stopped:
- Grandine
- Lighthouse
- Lodestar
- Nimbus
- Teku
grandine --network mainnet interchange import <SLASHING_PROTECTION_FILE>Grandine loads keys at start:
--keystore-dir <PATH_TO_KEYSTORES> --keystore-password-file <PASSWORD_FILE>.lighthouse --network mainnet account validator slashing-protection import <SLASHING_PROTECTION_FILE>lighthouse --network mainnet account validator import --directory <PATH_TO_KEYSTORES>./lodestar validator slashing-protection import \--network mainnet \--file <SLASHING_PROTECTION_FILE>./lodestar validator import \--network mainnet \--importKeystores <PATH_TO_KEYSTORES> \--importKeystoresPassword <PASSWORD_FILE>build/nimbus_beacon_node slashingdb import <SLASHING_PROTECTION_FILE> \--data-dir=<NIMBUS_DATA_DIR>build/nimbus_beacon_node deposits import \--data-dir=<NIMBUS_DATA_DIR> <PATH_TO_KEYSTORES>teku slashing-protection import \--data-path=<TEKU_DATA_PATH> \--from=<SLASHING_PROTECTION_FILE>Teku has no key import command. Start it with
--validator-keys=<PATH_TO_KEYSTORES>:<PATH_TO_PASSWORDS>, where each keystore.jsonhas a matching password.txt.<SLASHING_PROTECTION_FILE>is theslashing_protection.jsonfile you exported from Prysm in step 3, in<EXPORT_DIR>.Always check the command against the client's current documentation: Grandine, Lighthouse, Lodestar, Nimbus, Teku.
-
Start the new validator client with your fee recipient and MEV-Boost settings, and its doppelganger protection on for the first start.
Check that it works
- The new validator client reports your keys as active and submits attestations within a few epochs (longer with doppelganger protection).
- A block explorer shows attestations again.
- Once it has run for a day, remove Prysm's keys, data, and services so it can’t start by accident.