Skip to main content

Use the packaged binaries

Prerequisites

Download and install the Java JDK 21+

Install from packaged binaries

Download the Op Besu packaged binaries.

wget https://github.com/optimism-java/op-besu/releases/download/v0.1.0/op-besu-v0.1.0.tar.gz

Unpack the downloaded file into the op-besu-<release> directory.

tar -xvf op-besu-v0.1.0.tar.gz

Create a JWT Secret

You can check the JWT secret creation tutorial to learn how to create a JWT secret.

openssl rand -hex 32 > jwt.txt

Find the directory where you built the op-besu binary.

cd op-besu-v0.1.0

Copy in the JWT secret

Copy the JWT secret you generated in a previous step into the op-besu directory.

cp /path/to/jwt.txt .

Prepare the data directory

mkdir datadir 

Run an op-besu node

./bin/besu \
--network=OP_SEPOLIA \
--p2p-enabled=false \
--discovery-enabled=false \
--data-path=datadir \
--engine-rpc-enabled \
--engine-jwt-secret=./jwt.txt \
--rpc-http-enabled \
--host-allowlist=* \
--engine-host-allowlist=* \
--logging=INFO \
--version-compatibility-protection=false
Warning

The following settings are a security risk in production environments:

  • Enabling the HTTP JSON-RPC service (--rpc-http-enabled) and setting --rpc-http-host to 0.0.0.0 exposes the RPC connection on your node to any remote connection.
  • Setting --host-allowlist to "*" allows JSON-RPC API access from any host.
  • Setting --rpc-http-cors-origins to "all" or "*" allows cross-origin resource sharing (CORS) access from any domain.