- Network name
- Chain ID
- Block explorer
- Optimistic Ethereum Explorer
Also known as Optimistic Ethereum, Optimism is a layer 2 (L2) rollup helping to scale Ethereum. Let's unpack how it works.
L2s are a type of blockchain closely linked to a corresponding layer 1 (L1), which, in this case, is Ethereum. Transactions are handled on the L2 itself, the execution layer, whilst data about these transactions is 'rolled up' into a condensed form and posted on L1, demanding significantly less computation than if all of the transactions were to be conducted entirely on L1. Their structure allows users access to high-capacity, fast and low-cost alternative to Ethereum mainnet whilst retaining the same fundamental mechanisms and features. Critically, L2s also inherit Ethereum's security and reliability. Optimism's execution layer is called the OVM, or Optimism Virtual Machine.
Optimism uses a system similar to Proof-of-Stake, in which entities running nodes help secure the network. In this case, they are called verifiers. Additionally, Optimism requires a sequencer, responsible for collecting transactions from the L2, rolling them up, and posting them to L1 (Ethereum). Optimism itself currently runs the sole sequencer on the network.
As its name not-so-subtly hints, Optimism belongs to the optimistic rollup category. Similarly to Arbitrum, one of the other major L2 platforms, Optimism's protocols assume that all transactions are valid. This approach means that the network does not have to compute every transaction, significantly reducing congestion; instead, computation is only performed when the validity of the block is challenged.
This occurs in a process referred to as a fraud proof, which is where verifiers come in: when the state information or 'commitment' (i.e. the bundle of rolled-up transactions) is posted to Ethereum, a one-week 'challenge window' begins. Verifiers check state information and are responsible for initiating a fraud proof to resolve the issue. If proven right, verifiers are rewarded and the proposed commitment is replaced with a new one. This 'How Optimism Works' page is a good explainer if you want to find out more.
Gas controls on Optimism
When using Optimism in MetaMask, you won't be able to manually adjust the amount of gas you pay using advanced gas controls, as you would on other networks. The feature is disabled instead. This is because it's not possible for users to specify gas limits when Optimism submits the transaction to Ethereum. You can read more here.
Adding a network is a straightforward process.
Optimism is already configured as a popular network in MetaMask, so adding it is straightforward. Click 'Add network' and head to the 'Add popular networks' area (instructions here). From here, adding it to MetaMask should only take a few clicks or taps.
However, you can also manually input the network information above. For guidance, see here.
When you add Optimism as a new network, you will automatically switch to it.
However, if you need to switch back, follow the guidance below:
Find where your current selected network is displayed at the top of your wallet page:
Click it to bring up a list of previously connected networks that you can choose from. Find Optimism in the list and click it.
Locate the current network at the top of the screen:
Tap it to view your previously connected networks, and then tap again on Optimism to switch to it.
You can also use a third-party bridge such as the Hop Exchange, although you may not get a 1:1 exchange rate, or the Teleporter app, though Optimism itself warns that this platform is custodial (you need to trust the people running it) so you use it at your own risk.
Another alternative is to use a direct on-ramp. These are platforms which allow you to purchase crypto with fiat currency (e.g. dollars, euros) and have the appropriate quantity of tokens deposited into your wallet.
Optimism has a list of supported on-ramps here, and you can also buy ETH on Optimism directly in MetaMask Extension. Just make sure you have Optimism selected as your current network and hit the 'Buy' button. Read more here.
No. Always use the bridging methods described above to get your tokens onto Optimism.
Optimism supports its native token, Ether (ETH), as well as ERC-20 tokens. You can move any token from Ethereum to Optimism, provided it exists on both networks.
However, an ERC-20 token on Ethereum is not interchangeable with an ERC-20 token on Optimism. They must be bridged first, and you must make sure that the token is supported on Optimism before trying to bridge it over.
This is because ERC-20 tokens are essentially created by smart contracts. If a token exists on Ethereum it will have a corresponding token (contract) address. This same logic applies to Optimism: so if there is no contract address for a token on Optimism, you cannot move that token to the network.
To get around this potential barrier, it's best to stick to using the Optimism Gateway bridge, which will only allow you to transfer the token if it is supported on Optimism.
Since Optimism is a L2 rather than a conventional EVM-compatible network (such as Binance Chain or Avalanche C-Chain), you cannot move tokens from these networks onto Optimism, even if they have an ERC-20-equivalent standard (such as BEP-20). You must go via Ethereum mainnet.
Optimism docs: How Optimism works (detailed but accessible overview of the purpose of Optimism and its key features).