Network
Launch Date
Consensus
Note
Sepolia
Oct 2021
PoW
Like-for-like representation of Ethereum
Görli
Jan 2019
PoA
Proof-of-Authority
Kiln
Mar 2022
PoS
Post-Merge (for ETH2), shadow fork of the mainnet
Kintsugi
Dec 2021
PoS
DEPRECATED, use Kiln; post-Merge (for ETH2)
Ropsten
Nov 2016
PoW
DEPRECATED, use Sepolia; the Merge to happen on Jun 8, 2022
Rinkeby
Apr 2017
PoA
DEPRECATED, use Görli and Görli Faucet
Kovan
Mar 2017
PoA
DEPRECATED, use Sepolia or Görli
List of active and deprecated Ethereum testnets, including Kintsugi.
Features
Optimistic rollup 
ZK-rollup 
Proof
Uses fraud proofs to prove transaction validity. 
Uses validity (zero-knowledge) proofs to prove transaction validity. 
Capital efficiency
Requires waiting through a 1-week delay (dispute period) before withdrawing funds. 
Users can withdraw funds immediately because validity proofs provide incontrovertible evidence of the authenticity of off-chain transactions. 
Data compression
Publishes full transaction data as calldata to Ethereum Mainnet, which increases rollup costs. 
Doesn't need to publish transaction data on Ethereum because ZK-SNARKs and ZK-STARKs already guarantee the accuracy of the rollup state. 
EVM compatibility
Uses a simulation of the Ethereum Virtual Machine (EVM), which allows it to run arbitrary logic and support smart contracts. 
Doesn't widely support EVM computation, although a few EVM-compatible ZK-rollups have appeared. 
Rollup costs
Reduces costs since it publishes minimal data on Ethereum and doesn't have to post proofs for transactions, except in special circumstances. 
Faces higher overhead from costs involved in generating and verifying proofs for every transaction block. ZK proofs require specialized, expensive hardware to create and have high on-chain verification costs. 
Trust assumptions
Doesn't require a trusted setup. 
Requires a trusted setup to work. 
Liveness requirements
Verifiers are needed to keep tabs on the actual rollup state and the one referenced in the state root to detect fraud. 
Users don't need someone to watch the L2 chain to detect fraud. 
Security properties 
Relies on cryptoeconomic incentives to assure users of rollup security. 
Relies on cryptographic guarantees for security. 
Start building
on Alchemy.
Sign up for free
Start building on Optimism.
Sign up for free
Start building on Arbitrum.
Sign up for free
Start building on Ethereum.
Sign up for free
Start building on Polygon.
Sign up for free
Start building on Starknet.
Sign up for free
Start building on Flow.
Sign up for free
kiln faucet
Get free Kiln ETH.
Start building today
Goerli faucet
Get free Goerli ETH.
Start building today
mumbai faucet
Get free Mumbai Matic.
Start building today
rinkeby faucet
Get free Rinkeby
ETH.
Start building today
Start building on Ethereum.
Get started for free
Start building on Ethereum.
Get started for free
Start building on Flow.
Get started for free
Start building on Polygon.
Get started for free
Start building on Starknet.
Get started for free
Start building on Optimism.
Get started for free
Start building on Solana.
Get started for free
Start building on Solana.
Sign up for beta access
Start building on Solana.
Join the waitlist
Arbitrum logo
Start building on Arbitrum.
Get started for free
curl 
https://release.solana.com/v1.10.32/solana-install-init-x86_64-pc-windows-msvc.exe 
--output 
C:\solana-install-tmp\solana-install-init.exe 
--create-dirs
Layer 2
‍OPTIMISM NODE OVERVIEW

Which Optimism node is best? (2022)

Compare Self-Hosted Nodes vs. Public RPC Endpoints vs. Private RPC Endpoints
Last Updated:
September 6, 2022

To retrieve data from Optimism, dApp’s need to send requests through RPC nodes. In this article, we will explore the different types of nodes available to support web3 development on Optimism. 

What is Optimism?

Optimism is an Ethereum layer 2 (L2) scalability solution that leverages the power of optimistic rollups to enable up to 2,000 transactions per second. Optimism designed and maintains their blockchain with a clear set of core design values.

  1. Simplicity
  2. Pragmatism
  3. Sustainability
  4. Optimism

What is an optimistic rollup?

An optimistic rollup uses the security of Ethereum to improve throughput and latency on Ethereum’s base layer by moving computation and data storage off-chain. Optimism creates a rollup of many transactions made on their layer 2 chain, bundling them as one. Then, the rollup protocol optimistically assumes the validity of all these transactions and submits rollup to the Ethereum L1 chain.

What are Optimism nodes?

An Optimism node is a program running on a single computer that allows builders and traders to connect with the rest of the Optimism blockchain network. There are two main components involved with Optimism nodes: the Data Transport Layer and the Client Software. 

Data Transport Layer (DTL)

The Data Transport Layer serves as a contact between Optimism and Ethereum. Hosted on Ethereum is a smart contract — the CanonicalTransactionChain (CTC) contract — containing a list of all the blocks published to the Optimism blockchain.

The DTL regularly constructs the Optimism blockchain on a node by retrieving blocks previously published to the CTC. Without the DTL, Optimism nodes would not be able to stay up to date with blocks constructed by the L2 optimistic rollup.

Client Software

Running next to the Data Transport Layer is the Optimism client software. The Optimism client is nearly identical to a vanilla version of Geth, or Go Ethereum – the most widely used Ethereum client. As such, internally, Optimism is very similar to Ethereum, allowing shared EVM, identical accounting structures, gas metering, and more.

A huge benefit of developing on Optimism is that most tools that work on Ethereum will also work on Optimism, with little-to-no code changes.

Why do you need an Optimism node?

Building an Optimism application requires publishing transactions through the optimistic rollup, to the CTC. Additionally, Optimism nodes allow dApps to retrieve data about Optimism’s blocks. To support a high-performing dApp on Optimism, a well-functioning node is a must-have.

Types of Optimism Nodes

There are several options for connecting your dApp to an Optimism node including private Optimism nodes, using Optimism's public RPC node endpoint, and running your own, self-hosted node.

Most Optimism developers will use a private RPC endpoint from an Optimism node provider like Alchemy because Public endpoints and self-hosted nodes have numerous downsides including lower throughputs, higher setup costs, and more engineering maintenance support required.

1. Public Optimism Nodes

Alchemy manages Optimism's primary public endpoint and it can be accessed using this endpoint URL: https://mainnet.optimism.io.

Although there is support for public endpoints, Optimism emphasizes that public RPC endpoints are not at all suitable for production use.

The public Optimism endpoints will rate-limit applications, and often only support limited JSON-RPC methods.

2. Private Optimism Node Provider

If the lack of throughput of Optimism's public node is limiting your application or trading, a private Optimism RPC endpoint from a dedicated Optimism node provider will give engineers access to reliable and scalable Optimism nodes.

Alchemy is Optimism's recommended node provider. Along with the most reliable Optimism node performance in web3, Alchemy providers Optimism developers with a range of a host dev tooling including, Alchemy Build, Monitor, and Optimism webhooks, which are all designed to give you the best Optimism developer experience.

How to Start Using A Private Optimism RPC Endpoint with Alchemy

Alchemy offers a robust free tier, allowing you to get started with a reliable private Optimism RPC endpoint.

To create a new Optimism app in Alchemy:

  1. Sign up to create a Free account or sign into your existing account
  2. Click the "Create App" button at the top right of the dashboard
Alchemy developer platform dashboard.

Now fill out the following fields including:

  1. Naming your app
  2. Writing a description
  3. Choosing "Optimism" as your "Chain"
  4. Selecting "Optimism Mainnet" as your Network

If you want to create or migrate an application on Optimism's Goerli testnet, you can chose the testnet in the "Network" dropdown menu.

Create a private Optimism RPC endpoint using Alchemy.

Next, Click the "View Key" button on the dashboard to view your HTTPS key and begin sending requests to your new node!

Copy your Optimism RPC endpoint URL from the Alchemy application dashboard.

Now, replace your Optimism RPC URL in your application to start sending traffic through a dedicate Optimism endpoint provided by Alchemy.

3. Self-hosted Optimism Nodes

To have complete control over their node's configuration and implementation, developers may choose to run their own Optimism nodes (i.e. self-hosted nodes).

The first step in setting up an Optimism node is deciding on your node’s hardware. For this, Optimism recommends systems with:

  1. At least 16GB RAM
  2. An SSD (Solid State Drive) with at least 100GB free space

After deciding on hardware, Optimism provides directions for two methods to set up your self-hosted node: a configuration using Docker, and a configuration without Docker.

Below are summaries of the two approaches to setting up an Optimism node. If you decide to set up a node, follow Optimism’s node configuration instructions.

1. Docker Configuration

Optimism’s recommended method for setting up a self-hosted node is to use their provided Docker images.

By using a Docker image for your node setup, you get to skip many configuration steps as the images already have most configuration settings.

Here is a high-level overview of the steps using a Docker configuration:

  1. Clone the node Github repository on your machine
  2. Configure the node settings
  3. Run your self-hosted Optimism node

For step two, you will have to provide multiple other nodes, another L2 Optimism node and an L1 RPC node.

The secondary L2 Optimism node that will be used by your Optimism node to verify its correctness, and Ethereum (L1) RPC node is used for checking your node’s state roots, and to download L2 blocks from L1 via the CTC (CanonicalTransactionChain)

Optimism recommends that these supporting nodes are from RPC providers.

Using this Docker configuration, your node will benefit from a number of additional features to help you maintain the node. 

How does the healthcheck service work?

The healthcheck service will regularly compare your node state to the state of the reference node — confirming your node is syncing properly. A fault detector will scan transactions from the Optimism sequencer and compare the results against transactions computed on your node. Lastly, a locally-hosted dashboard will give you easy access to basic node metrics including fault data, DTL syncing, and more.

2. Non-docker Configuration

If the preconfigured Docker images do not offer enough customization for you, Optimism also describes the framework for setting up a node independently. However, they do not recommend setting up a node this way. 

While these instructions are tested, they are not as robust as the Docker configuration. This method comes with the risk of setting up poorly functioning nodes. A summary of the instructions is below. 

  1. Install the packages and tools needed to run an Optimism node

The packages and tools you need to install are:

  • ‍Libusb - a library Geth uses to check for hardware wallets
  • Node.js - a Javascript runtime
  • ‍Yarn - a popular Node.js package manager
  • Go - the programming language
  1. Set up the Data Transport Layer

DTL is the first piece of your node software. Here you will download the source code, edit its configuration, and run the layer. 

As is the case with the Docker configuration, here you will need to provide your self-hosted Optimism node with another node so it can sync its blocks.

Once running, manage the DTL to make sure it’s syncing correctly with Optimism.

  1. Set up the Optimism client

Setting up your Optimism client is the second component of your self-hosted node. You must compile the source code, download and verify the state from Optimism’s genesis, create and configure its environment, run the configuration, and finally start the client.  

Running self-hosted nodes is an alternative option for expert web3 developers who want more control over their Optimism node configuration. However, choosing to launch and manage a self-hosted node is more expensive and time-consuming than using an Optimism node provider and developer platform like Alchemy.

Which type of Optimism node is best for me?

In the majority of circumstances using a private Optimism endpoint through Alchemy is the best option. Public Optimism endpoints should not be used for production traffic, and unless you are an expert infrastructure engineer, you should not manage your own Optimism node.

Even if you are a casual trader or dApp user on Optimism, updating your MetaMask wallet with a dedicated Optimism endpoint can provide faster and more reliable service.

Get started today with the most robust, free Optimism node provider tier in the market, and unleash the full power of your dApp with Alchemy.

ALCHEMY SUPERNODE - ETHEREUM NODE API

Scale to any size, without any errors

Alchemy Supernode finally makes it possible to scale blockchain applications without all the headaches. Plus, our legendary support will guide you every step of the way.

Get started for free
Supernode footer
Layer 2
‍OPTIMISM NODE OVERVIEW

Which Optimism node is best? Public vs. Private vs. Self-Hosted

Compare Self-Hosted Nodes vs. Public RPC Endpoints vs. Private RPC Endpoints
Last Updated:
September 6, 2022
Don't miss an update
Sign up for our newsletter to get alpha, key insights, and killer resources.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

To retrieve data from Optimism, dApp’s need to send requests through RPC nodes. In this article, we will explore the different types of nodes available to support web3 development on Optimism. 

What is Optimism?

Optimism is an Ethereum layer 2 (L2) scalability solution that leverages the power of optimistic rollups to enable up to 2,000 transactions per second. Optimism designed and maintains their blockchain with a clear set of core design values.

  1. Simplicity
  2. Pragmatism
  3. Sustainability
  4. Optimism

What is an optimistic rollup?

An optimistic rollup uses the security of Ethereum to improve throughput and latency on Ethereum’s base layer by moving computation and data storage off-chain. Optimism creates a rollup of many transactions made on their layer 2 chain, bundling them as one. Then, the rollup protocol optimistically assumes the validity of all these transactions and submits rollup to the Ethereum L1 chain.

What are Optimism nodes?

An Optimism node is a program running on a single computer that allows builders and traders to connect with the rest of the Optimism blockchain network. There are two main components involved with Optimism nodes: the Data Transport Layer and the Client Software. 

Data Transport Layer (DTL)

The Data Transport Layer serves as a contact between Optimism and Ethereum. Hosted on Ethereum is a smart contract — the CanonicalTransactionChain (CTC) contract — containing a list of all the blocks published to the Optimism blockchain.

The DTL regularly constructs the Optimism blockchain on a node by retrieving blocks previously published to the CTC. Without the DTL, Optimism nodes would not be able to stay up to date with blocks constructed by the L2 optimistic rollup.

Client Software

Running next to the Data Transport Layer is the Optimism client software. The Optimism client is nearly identical to a vanilla version of Geth, or Go Ethereum – the most widely used Ethereum client. As such, internally, Optimism is very similar to Ethereum, allowing shared EVM, identical accounting structures, gas metering, and more.

A huge benefit of developing on Optimism is that most tools that work on Ethereum will also work on Optimism, with little-to-no code changes.

Why do you need an Optimism node?

Building an Optimism application requires publishing transactions through the optimistic rollup, to the CTC. Additionally, Optimism nodes allow dApps to retrieve data about Optimism’s blocks. To support a high-performing dApp on Optimism, a well-functioning node is a must-have.

Types of Optimism Nodes

There are several options for connecting your dApp to an Optimism node including private Optimism nodes, using Optimism's public RPC node endpoint, and running your own, self-hosted node.

Most Optimism developers will use a private RPC endpoint from an Optimism node provider like Alchemy because Public endpoints and self-hosted nodes have numerous downsides including lower throughputs, higher setup costs, and more engineering maintenance support required.

1. Public Optimism Nodes

Alchemy manages Optimism's primary public endpoint and it can be accessed using this endpoint URL: https://mainnet.optimism.io.

Although there is support for public endpoints, Optimism emphasizes that public RPC endpoints are not at all suitable for production use.

The public Optimism endpoints will rate-limit applications, and often only support limited JSON-RPC methods.

2. Private Optimism Node Provider

If the lack of throughput of Optimism's public node is limiting your application or trading, a private Optimism RPC endpoint from a dedicated Optimism node provider will give engineers access to reliable and scalable Optimism nodes.

Alchemy is Optimism's recommended node provider. Along with the most reliable Optimism node performance in web3, Alchemy providers Optimism developers with a range of a host dev tooling including, Alchemy Build, Monitor, and Optimism webhooks, which are all designed to give you the best Optimism developer experience.

How to Start Using A Private Optimism RPC Endpoint with Alchemy

Alchemy offers a robust free tier, allowing you to get started with a reliable private Optimism RPC endpoint.

To create a new Optimism app in Alchemy:

  1. Sign up to create a Free account or sign into your existing account
  2. Click the "Create App" button at the top right of the dashboard
Alchemy developer platform dashboard.

Now fill out the following fields including:

  1. Naming your app
  2. Writing a description
  3. Choosing "Optimism" as your "Chain"
  4. Selecting "Optimism Mainnet" as your Network

If you want to create or migrate an application on Optimism's Goerli testnet, you can chose the testnet in the "Network" dropdown menu.

Create a private Optimism RPC endpoint using Alchemy.

Next, Click the "View Key" button on the dashboard to view your HTTPS key and begin sending requests to your new node!

Copy your Optimism RPC endpoint URL from the Alchemy application dashboard.

Now, replace your Optimism RPC URL in your application to start sending traffic through a dedicate Optimism endpoint provided by Alchemy.

3. Self-hosted Optimism Nodes

To have complete control over their node's configuration and implementation, developers may choose to run their own Optimism nodes (i.e. self-hosted nodes).

The first step in setting up an Optimism node is deciding on your node’s hardware. For this, Optimism recommends systems with:

  1. At least 16GB RAM
  2. An SSD (Solid State Drive) with at least 100GB free space

After deciding on hardware, Optimism provides directions for two methods to set up your self-hosted node: a configuration using Docker, and a configuration without Docker.

Below are summaries of the two approaches to setting up an Optimism node. If you decide to set up a node, follow Optimism’s node configuration instructions.

1. Docker Configuration

Optimism’s recommended method for setting up a self-hosted node is to use their provided Docker images.

By using a Docker image for your node setup, you get to skip many configuration steps as the images already have most configuration settings.

Here is a high-level overview of the steps using a Docker configuration:

  1. Clone the node Github repository on your machine
  2. Configure the node settings
  3. Run your self-hosted Optimism node

For step two, you will have to provide multiple other nodes, another L2 Optimism node and an L1 RPC node.

The secondary L2 Optimism node that will be used by your Optimism node to verify its correctness, and Ethereum (L1) RPC node is used for checking your node’s state roots, and to download L2 blocks from L1 via the CTC (CanonicalTransactionChain)

Optimism recommends that these supporting nodes are from RPC providers.

Using this Docker configuration, your node will benefit from a number of additional features to help you maintain the node. 

How does the healthcheck service work?

The healthcheck service will regularly compare your node state to the state of the reference node — confirming your node is syncing properly. A fault detector will scan transactions from the Optimism sequencer and compare the results against transactions computed on your node. Lastly, a locally-hosted dashboard will give you easy access to basic node metrics including fault data, DTL syncing, and more.

2. Non-docker Configuration

If the preconfigured Docker images do not offer enough customization for you, Optimism also describes the framework for setting up a node independently. However, they do not recommend setting up a node this way. 

While these instructions are tested, they are not as robust as the Docker configuration. This method comes with the risk of setting up poorly functioning nodes. A summary of the instructions is below. 

  1. Install the packages and tools needed to run an Optimism node

The packages and tools you need to install are:

  • ‍Libusb - a library Geth uses to check for hardware wallets
  • Node.js - a Javascript runtime
  • ‍Yarn - a popular Node.js package manager
  • Go - the programming language
  1. Set up the Data Transport Layer

DTL is the first piece of your node software. Here you will download the source code, edit its configuration, and run the layer. 

As is the case with the Docker configuration, here you will need to provide your self-hosted Optimism node with another node so it can sync its blocks.

Once running, manage the DTL to make sure it’s syncing correctly with Optimism.

  1. Set up the Optimism client

Setting up your Optimism client is the second component of your self-hosted node. You must compile the source code, download and verify the state from Optimism’s genesis, create and configure its environment, run the configuration, and finally start the client.  

Running self-hosted nodes is an alternative option for expert web3 developers who want more control over their Optimism node configuration. However, choosing to launch and manage a self-hosted node is more expensive and time-consuming than using an Optimism node provider and developer platform like Alchemy.

Which type of Optimism node is best for me?

In the majority of circumstances using a private Optimism endpoint through Alchemy is the best option. Public Optimism endpoints should not be used for production traffic, and unless you are an expert infrastructure engineer, you should not manage your own Optimism node.

Even if you are a casual trader or dApp user on Optimism, updating your MetaMask wallet with a dedicated Optimism endpoint can provide faster and more reliable service.

Get started today with the most robust, free Optimism node provider tier in the market, and unleash the full power of your dApp with Alchemy.

To retrieve data from Optimism, dApp’s need to send requests through RPC nodes. In this article, we will explore the different types of nodes available to support web3 development on Optimism. 

What is Optimism?

Optimism is an Ethereum layer 2 (L2) scalability solution that leverages the power of optimistic rollups to enable up to 2,000 transactions per second. Optimism designed and maintains their blockchain with a clear set of core design values.

  1. Simplicity
  2. Pragmatism
  3. Sustainability
  4. Optimism

What is an optimistic rollup?

An optimistic rollup uses the security of Ethereum to improve throughput and latency on Ethereum’s base layer by moving computation and data storage off-chain. Optimism creates a rollup of many transactions made on their layer 2 chain, bundling them as one. Then, the rollup protocol optimistically assumes the validity of all these transactions and submits rollup to the Ethereum L1 chain.

What are Optimism nodes?

An Optimism node is a program running on a single computer that allows builders and traders to connect with the rest of the Optimism blockchain network. There are two main components involved with Optimism nodes: the Data Transport Layer and the Client Software. 

Data Transport Layer (DTL)

The Data Transport Layer serves as a contact between Optimism and Ethereum. Hosted on Ethereum is a smart contract — the CanonicalTransactionChain (CTC) contract — containing a list of all the blocks published to the Optimism blockchain.

The DTL regularly constructs the Optimism blockchain on a node by retrieving blocks previously published to the CTC. Without the DTL, Optimism nodes would not be able to stay up to date with blocks constructed by the L2 optimistic rollup.

Client Software

Running next to the Data Transport Layer is the Optimism client software. The Optimism client is nearly identical to a vanilla version of Geth, or Go Ethereum – the most widely used Ethereum client. As such, internally, Optimism is very similar to Ethereum, allowing shared EVM, identical accounting structures, gas metering, and more.

A huge benefit of developing on Optimism is that most tools that work on Ethereum will also work on Optimism, with little-to-no code changes.

Why do you need an Optimism node?

Building an Optimism application requires publishing transactions through the optimistic rollup, to the CTC. Additionally, Optimism nodes allow dApps to retrieve data about Optimism’s blocks. To support a high-performing dApp on Optimism, a well-functioning node is a must-have.

Types of Optimism Nodes

There are several options for connecting your dApp to an Optimism node including private Optimism nodes, using Optimism's public RPC node endpoint, and running your own, self-hosted node.

Most Optimism developers will use a private RPC endpoint from an Optimism node provider like Alchemy because Public endpoints and self-hosted nodes have numerous downsides including lower throughputs, higher setup costs, and more engineering maintenance support required.

1. Public Optimism Nodes

Alchemy manages Optimism's primary public endpoint and it can be accessed using this endpoint URL: https://mainnet.optimism.io.

Although there is support for public endpoints, Optimism emphasizes that public RPC endpoints are not at all suitable for production use.

The public Optimism endpoints will rate-limit applications, and often only support limited JSON-RPC methods.

2. Private Optimism Node Provider

If the lack of throughput of Optimism's public node is limiting your application or trading, a private Optimism RPC endpoint from a dedicated Optimism node provider will give engineers access to reliable and scalable Optimism nodes.

Alchemy is Optimism's recommended node provider. Along with the most reliable Optimism node performance in web3, Alchemy providers Optimism developers with a range of a host dev tooling including, Alchemy Build, Monitor, and Optimism webhooks, which are all designed to give you the best Optimism developer experience.

How to Start Using A Private Optimism RPC Endpoint with Alchemy

Alchemy offers a robust free tier, allowing you to get started with a reliable private Optimism RPC endpoint.

To create a new Optimism app in Alchemy:

  1. Sign up to create a Free account or sign into your existing account
  2. Click the "Create App" button at the top right of the dashboard
Alchemy developer platform dashboard.

Now fill out the following fields including:

  1. Naming your app
  2. Writing a description
  3. Choosing "Optimism" as your "Chain"
  4. Selecting "Optimism Mainnet" as your Network

If you want to create or migrate an application on Optimism's Goerli testnet, you can chose the testnet in the "Network" dropdown menu.

Create a private Optimism RPC endpoint using Alchemy.

Next, Click the "View Key" button on the dashboard to view your HTTPS key and begin sending requests to your new node!

Copy your Optimism RPC endpoint URL from the Alchemy application dashboard.

Now, replace your Optimism RPC URL in your application to start sending traffic through a dedicate Optimism endpoint provided by Alchemy.

3. Self-hosted Optimism Nodes

To have complete control over their node's configuration and implementation, developers may choose to run their own Optimism nodes (i.e. self-hosted nodes).

The first step in setting up an Optimism node is deciding on your node’s hardware. For this, Optimism recommends systems with:

  1. At least 16GB RAM
  2. An SSD (Solid State Drive) with at least 100GB free space

After deciding on hardware, Optimism provides directions for two methods to set up your self-hosted node: a configuration using Docker, and a configuration without Docker.

Below are summaries of the two approaches to setting up an Optimism node. If you decide to set up a node, follow Optimism’s node configuration instructions.

1. Docker Configuration

Optimism’s recommended method for setting up a self-hosted node is to use their provided Docker images.

By using a Docker image for your node setup, you get to skip many configuration steps as the images already have most configuration settings.

Here is a high-level overview of the steps using a Docker configuration:

  1. Clone the node Github repository on your machine
  2. Configure the node settings
  3. Run your self-hosted Optimism node

For step two, you will have to provide multiple other nodes, another L2 Optimism node and an L1 RPC node.

The secondary L2 Optimism node that will be used by your Optimism node to verify its correctness, and Ethereum (L1) RPC node is used for checking your node’s state roots, and to download L2 blocks from L1 via the CTC (CanonicalTransactionChain)

Optimism recommends that these supporting nodes are from RPC providers.

Using this Docker configuration, your node will benefit from a number of additional features to help you maintain the node. 

How does the healthcheck service work?

The healthcheck service will regularly compare your node state to the state of the reference node — confirming your node is syncing properly. A fault detector will scan transactions from the Optimism sequencer and compare the results against transactions computed on your node. Lastly, a locally-hosted dashboard will give you easy access to basic node metrics including fault data, DTL syncing, and more.

2. Non-docker Configuration

If the preconfigured Docker images do not offer enough customization for you, Optimism also describes the framework for setting up a node independently. However, they do not recommend setting up a node this way. 

While these instructions are tested, they are not as robust as the Docker configuration. This method comes with the risk of setting up poorly functioning nodes. A summary of the instructions is below. 

  1. Install the packages and tools needed to run an Optimism node

The packages and tools you need to install are:

  • ‍Libusb - a library Geth uses to check for hardware wallets
  • Node.js - a Javascript runtime
  • ‍Yarn - a popular Node.js package manager
  • Go - the programming language
  1. Set up the Data Transport Layer

DTL is the first piece of your node software. Here you will download the source code, edit its configuration, and run the layer. 

As is the case with the Docker configuration, here you will need to provide your self-hosted Optimism node with another node so it can sync its blocks.

Once running, manage the DTL to make sure it’s syncing correctly with Optimism.

  1. Set up the Optimism client

Setting up your Optimism client is the second component of your self-hosted node. You must compile the source code, download and verify the state from Optimism’s genesis, create and configure its environment, run the configuration, and finally start the client.  

Running self-hosted nodes is an alternative option for expert web3 developers who want more control over their Optimism node configuration. However, choosing to launch and manage a self-hosted node is more expensive and time-consuming than using an Optimism node provider and developer platform like Alchemy.

Which type of Optimism node is best for me?

In the majority of circumstances using a private Optimism endpoint through Alchemy is the best option. Public Optimism endpoints should not be used for production traffic, and unless you are an expert infrastructure engineer, you should not manage your own Optimism node.

Even if you are a casual trader or dApp user on Optimism, updating your MetaMask wallet with a dedicated Optimism endpoint can provide faster and more reliable service.

Get started today with the most robust, free Optimism node provider tier in the market, and unleash the full power of your dApp with Alchemy.

Build blockchain magic with Alchemy

Alchemy combines the most powerful web3 developer products and tools with resources, community and legendary support.

Get started for free