Teku is an open-source Ethereum consensus client written in Java and containing a full beacon node and validator client implementation.
See the Changelog for details of the latest releases and upcoming breaking changes.
See our user documentation.
Raise a documentation issue or get in touch in the #teku channel on Discord if you've got questions or feedback.
Binary releases are available from the releases page.
Binary builds that track the latest changes on the master branch are available on
Dockerhub using the develop
version or as binary
downloads (tar.gz format
or zip format).
We recommend only using release versions for Mainnet, but develop
builds are useful for testing
the latest changes on testnets.
Release notifications are available via:
teku
in Consensys Discord,Note: Official builds of Teku are performed with Java 21. Building on a more recent version of Java is supported, but the resulting build will not work on earlier versions of Java.
To create a ready to run distribution:
git clone https://github.com/Consensys/teku.git
cd teku && ./gradlew distTar installDist
This produces:
build/distributions
build/install/teku
To build, clone this repo and run with gradle
:
git clone https://github.com/Consensys/teku.git
cd teku && ./gradlew
After a successful build, distribution packages are available in build/distributions
.
Target | Builds |
---|---|
distTar | Full distribution in build/distributions (as .tar.gz ) |
distZip | Full distribution in build/distributions (as .zip ) |
installDist | Expanded distribution in build/install/teku |
distDocker | The consensys/teku docker image |
We use Google's Java coding conventions for the project. To reformat code, run:
./gradlew spotlessApply
Code style is checked automatically during a build.
All the unit tests are run as part of the build, but can be explicitly triggered with:
./gradlew test
YourKit for providing us with a free profiler open source license.
YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.