Updated on May 24, 2021
Start Teku from a recent state
To get Teku up and running in only a few minutes, you can start Teku from a recent finalized checkpoint state rather than syncing from genesis.
When starting from a recent checkpoint, Teku downloads historic chain data in the background.
You need access to a beacon chain client with REST API enabled (for example Teku) to download the finalized checkpoint state file.
The following command downloads a recent finalized checkpoint state from a beacon chain client, and starts Teku:
teku --eth1-endpoint=http://localhost:8545 \ --validator-keys=/Users/me/mainnet/validator/keys:/Users/me/mainnet/validator/passwords \ --initial-state=http://other-node:5051/eth/v1/debug/beacon/states/finalized
You can also download a finalized checkpoint state file, and specify the location
--initial-state option. To
download the file and name it
curl -o state.ssz -H 'Accept: application/octet-stream' http://other-node:5051/eth/v1/debug/beacon/states/finalized