Teku

Installing and configuring the Teku Beacon Node.

Teku

Teku is a full Ethereum 2.0 client designed and built to meet institutional needs and security requirements. Developed by ConsenSys, it is written in Java and maintains Apache 2.0 licensing.

🛡️ Role: Teku is widely used by staking-as-a-service providers due to its robust support for external key managers (like Web3Signer) and its stability in enterprise environments.


1. Install Dependencies (Java)

Like Besu, Teku requires a Java Runtime Environment (JRE). We recommend Java 21 LTS for optimal performance.

Bash

# Update repositories
sudo apt update

# Install OpenJDK 21
sudo apt install -y openjdk-21-jre-headless

# Verify Java installation
java -version

2. Download & Install

We will download the latest binary release from the official ConsenSys repository.

A. Create the Application Directory

Bash

B. Set Permissions Ensure the ethereum user owns the directory.

Bash


3. Configure Systemd Service

We will configure Teku to run as a background service.

⚡ Checkpoint Sync: Teku uses the --initial-state flag to perform checkpoint syncs. This downloads a recent state from a trusted peer to sync in minutes.

Create the service file:

Bash

Paste the following configuration:

Ini, TOML

🔍 Flag Explanation:

  • --ee-endpoint: The URL of your local Geth/Nethermind Engine API.

  • --initial-state: Loads the checkpoint state for fast syncing.

  • --rest-api-enabled: Enables the API (Required if you want to check status or connect a Validator Client later).


4. Start the Service

Reload the systemd daemon and start the beacon node.

Bash


5. Verify Status

Check the logs to ensure Teku is initializing correctly.

Bash

Expected Output:

  1. Eth1 Connection: Switching to the follower execution engine (This is normal at startup, it means it found Geth/Nethermind).

  2. Sync: Syncing to checkpoint followed by Remote checkpoint loaded.

  3. Head Update: You should start seeing logs like Slot Event or Head updated as it follows the chain.

Last updated