Mainnet Taiko Node
Click here to Run a Mainnet Taiko Node from Source!
component. -->
This guide shows you how to build your own node from source code.
You might want to do this if you want to run a node on a specific architecture or if you want to inspect the source code of the node you’re running.
A Taiko Node consists of two components, analogous to an Ethereum node; the consensus client and execution engine.
The taiko client is responsible for decoding L2 blocks from L1 calldata (and blobspace!), then passing those payloads to our execution engine.
It has three subcommands, driver
, prover
, and proposer
.
The taiko client replaces the consensus client in an Ethereum mainnet node.
In this tutorial you will build the taiko-client
as found in the taiko monorepo.
The execution engine is responsible for executing the block payloads it receives from the taiko client. It holds the latest state of the chain.
taiko-geth
exposes the standard JSON-RPC API that Ethereum developers are familiar with, and can be used accordingly to query blockchain data and submit transactions to the network.
taiko-geth
replaces the execution client in an Ethereum mainnet node.
In this tutorial you will build the taiko-geth
implementation of go-ethereum
as found in the taiko-geth
repository.
Dependency | Version | Version Check Command |
---|---|---|
git | ^2 | git --version |
go | ^1.21 | go version |
make | ^4 | make --version |
First you’re going to build taiko-client
.
Clone the Taiko monorepo
The Taiko monorepo contains the source code for the taiko-client
.
Checkout the release branch you wish to run
Release branches are created when new versions of the taiko-client
are created.
Find the branch you wish to check out in the releases page.
Search by taiko-client
to find all relevant releases.
Build taiko-client
Next you’re going to build taiko-geth
.
Clone taiko-geth
The taiko-geth
repository contains the source code for our execution engine.
Checkout the release branch you wish to run
Release branches are created when new versions of the taiko-geth
are created.
Find the branch you wish to check out in the releases page.
Build taiko-geth
Now that you’ve built your own node from source, you can run it for Taiko Mainnet or Testnet!
Mainnet Taiko Node
Click here to Run a Mainnet Taiko Node from Source!
Testnet Taiko Node
Click here to Run a Testnet Taiko Node from Source!
Troubleshooting
If you run into any problems, please visit the troubleshooting page for help.