HOW TO RUN A VALIDATOR NODE FOR TAIKO BLOCKCHAIN

HEADBOY
8 min readApr 4, 2023

--

Taiko Aims To Build A Secure, Decentralized, And Permissionless Rollup On Ethereum

We’d Be Looking To Maximize Our Efforts On The Blockchain By Running A Node On Their Askja Testnet To Be Eligible For Future Rewards

Heres A Step-By-Step Tutorial On How To Go About It

First Step: Order & Configure Your

Before Running A Node, You’d Be Needing To Rent A VPS & I’d Be Guiding You On How To Go About It

Click → HERE Order Your VPS

I would be 100% Transparent, Thats My Affiliate Link & Would Really Appreciate If You Make Use Of It

Next Select CLOUD VPS M

Next Select 1 Month Rental Period, You Can Extend When Subscription Expires

Set Region As European Union (Germany)

Set Storage Type As 400 GB SSD

Next Image, Switch To Apps & Panels & Select Docker

5. Login & Password For Your Server

Click Generate Password, Copy & Save That Password As It Would Be Used To Access Your Terminal

For Networking & Add-Ons, Leave As Same & Click Next

Now If You’re A New Customer, Youd Charge A One time Set Up Fee & Youd Also Need To Fill In Your Necessary Details, If You’re An Old Customer Click I’m a Contabo Customer & Proceed To Check Out

Once it’s Done Click Next

Next Choose A Mode Of Payment, I.E Credit Card Input Details & Click Next, You should Receive A Order Status Mail Immediately

Credit Card Users, If You’re Having Issues With Your Card Not Been Accepted, You Can Download Gotok Set Up, Choose Your Regiom & Create A Virtual Card, It Can Be Funded With Binance

Order Status

Next Email In 15Mins Should Contain Your Your VPS Details

Copy Your VPS IP Address

NB The Password For It Was The One We Generated On Contabo

If Youve Come This Far Please Follow Me On My Socials

Telegram

Twitter

Now Lets Proceed ↓

→ For Windows Users

You’d Need To Download Putty Click HERE , Now Set Up & Install It & Launch The App, Let’s Configure It, Input Your IP Address Where You Have Host Name, Select SSH & Click Open

You should see a login interface, Username Root & Password Is The One We Generate At Contabo

When You Type The Password, You Won’t See It, So Type Correctly

You Should See A Contabo Welcome Message

MacOs Users

Go To Your Launchpad & Search For Terminal

Next Type The Following In The Terminal Window

ssh username@vps-ip-address

Replace Username With root

Replace Vps-ip-address With Your VPS Sent To Your Mail 158.220.113.10

Click Enter & Input Your Password Copied When Renting VPS, Password Won’t Be Visible Just Type & Click Enter

You should see this

If you’re facing any problem, Be sure to type the correct password

You’ve Gain Access To Your Server & You Have Permission To Write & Paste Commands

Follow My Steps, You Can Choose To Paste Or Cøpy Them

Second Step: PREPARATION

→ Let’s Update The Packages :

sudo apt update && sudo apt upgrade -y

→ Next Install Prerequisites:

After Pasting This Code On The Terminal, You Should See A Prompt Saying Y/n Input Y & Click Enter

sudo apt install pkg-config curl git-all build-essential libssl-dev libclang-dev ufw

→ Install Taiko Node Docker

sudo apt-get install ca-certificates curl gnupg lsb-release

→ Let’s Add Docker’s Official GPG Key

sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

→ Next Set Up The Repository

echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

→ Let’s Grant Read Permission For The Docker Public Key File

sudo chmod a+r /etc/apt/keyrings/docker.gpg
sudo apt-get update

→ Install Latest Version Using This Command

After Pasting, A Prompt Should Come Up (Y/n) input Y & Click Enter

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

If It’s Already Installed, Command Prompt Won’t Come Up

Next Install Docker Compose

After Pasting, A Prompt Should Come Up (Y/n) input Y & Click Enter

sudo apt install docker-compose

Now Verify If The Docker Installation Is Successful By Using This Command

sudo docker run hello-world

→ Let’s Check Docker Compose Version

docker-compose -v

→ Install Screen

sudo apt install screen

Next Create A New Session By Screen

Where <Your Session Name> Should Be Replaced With A Name Of Your Choice I.e HEADBOY

sudo screen -S <Your Session Name>

Then Use This Command

sudo screen -S taiko

Third Step: Account Set Up Alchemy & MetaMask

Visit Alchemy & Create A Free Account, Now Click Apps & Select Create App, Next Set Name As Taiko, Description As Alpha-2, Chain As Ethereum & Network As Sepolia & Click Create App

Go Back To Dashboard & Click VIEW KEY, & Copy Both The HTTPS & WEBSOCKETS

→ MetaMask Setup

NB: You’d be needing to create a fresh wallet that would be only utilized for taiko node, as we’d be exporting private keys

Now Visit MetaMask To Download MetaMask, Now Head To Settings & Click Create Account, Set Name & Click Create, Next Up Click The Three dot Area & Click On Account Details & Click On Export Private Key

Next Input MetaMask Password & Copy Your Private Key

● Let’s Add Network & Request Faucet

→ Add the Sepolia testnet

Visit https://chainid.network/, search for “Sepolia”, and click the “Add Chain” button.

→ Add The Taiko Testnet

Visit https://chainid.network/, search for “Taiko”, and click the “Add Chain” button.

FAUCET

Visit https://sepoliafaucet.com/, login into your account & Paste Your WalleT Address Then Click Send Me ETH

Fouth Step: NODE INSTALLATION

→ First Download The Node

git clone https://github.com/taikoxyz/simple-taiko-node.git
cd simple-taiko-node

→ Let’s Configure The Node

cp .env.sample .env

→ Let’s Edit The Configurations

nano .env

Next The Keys You Copied From Alchemy

Starting With Https:// & Wss

Paste Them Respectively Where You Have

L1_ENDPOINT_HTTP=

L1_ENDPOINT_WS=

Next Change The Following

ENABLE_PROVER= Prev False Now True

L1_PROVER_PRIVATE_KEY= Your MetaMask Private Key

Next Press Ctrl + X And Type Y Then Click Enter On Your Keyboard

→ Let’s Start The Node

docker compose up

You Can Check Alchemy, To Monitor The Status Of Your Node

Other Commands You Might Want To Explore

Ctrl and A + D to detach screen session.

→ Stop A Node

docker compose down

Remove a node

These Command Will Completely Remove The Node

docker compose down -vrm -f .env

Update a node

Update the simple-taiko-node Docker images:

docker compose pull

View all logs

docker compose logs -f

View the prover image’s logs

docker compose logs -f taiko_client_prover

View the L2 execution engine logs

docker compose logs -f l2_execution_engine

First Time Interaction On Taiko ZkEvm, Here A Some Other Interactions To Consider

→ Contract Deployment

Click → HERE

→ Testnet

Click → HERE

& Thats A Wrap For Taiko Follow Me On My Socials For Other Tutorials

Twitter

Telegram

--

--