The OP Mainnet upgrade to the Bedrock release will take place on June 6, 2023 at 16:00 UTC!
There will be 2-4 hours of downtime.
See here for additional details. (opens new window)
Networks, Public RPC Endpoints, & APIs
Developer Tip
We recommend using Alchemy (opens new window) for its scalability, reliability, and data accuracy.
Note
Some API calls, such as those in the personal namespace (opens new window) make no sense in a shared environment. Such RPCs are either totally unsupported, or will return nonsensical values.
# Optimism (mainnet)
Pre-Bedrock
We are currently testing the Bedrock release. The mainnet network has still not been updated.
Parameter | Value |
---|---|
Network Name | Optimism |
Description | Mainnet |
Chain ID | 10 |
Explorer | https://explorer.optimism.io (opens new window) |
HTTP Endpoint1 | We recommend Alchemy (opens new window). Optimism also provides this endpoint: https://mainnet.optimism.io . But it is not for production systems and is rate limited. |
L1 Contract Addresses | link (opens new window) |
L2 Contract Addresses | link (opens new window) |
chainid.link | https://chainid.link/?network=optimism (opens new window) |
Developer Tip
If you are seeing rate limit issues when testing with the public end point, or if you need websocket functionality, we recommend signing up for Alchemy's (opens new window) free trial.
(1) Some API calls, such as those in the personal namespace (opens new window) make no sense in a shared environment. Such RPCs are either not supported, or will return nonsensical values.
# API Options:
Get free access to Optimism through Alchemy (opens new window)
For small scale tests, you can use our public API:
- HTTP endpoint: https://mainnet.optimism.io (opens new window) (note, this is for testing. For production, use Alchemy)
You can run a large application for free using Alchemy (opens new window). We’ve done extensive diligence and Alchemy is our recommendation due to reliability, scalability, and data correctness. They're the default API provider and developer platform for top projects like OpenSea and Facebook.
# Optimism Goerli
Purpose
This is our test network. It has already been updated to the Bedrock release.
Parameter | Value |
---|---|
Network Name | Optimism Goerli |
Description | Testnet (public) |
Chain ID | 420 |
Explorer | https://goerli-explorer.optimism.io (opens new window) |
HTTP Endpoint | https://goerli.optimism.io |
chainid.link | https://chainid.link/?network=optimism-goerli (opens new window) |
# Contract addresses
The authoritative list of contract addresses is in the monorepo (opens new window). They are reproduced here for convenience
Contract name | Address |
---|---|
L1CrossDomainMessenger | 0x5086d1eEF304eb5284A0f6720f79403b4e9bE294 (opens new window) |
L1ERC721Bridge | 0x0F9C590b958002E8B10a7431979c1aF882772E88 (opens new window) |
L1StandardBridge | 0x636Af16bf2f682dD3109e60102b8E1A089FedAa8 (opens new window) |
L2OutputOracle | 0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0 (opens new window) |
Lib_AddressManager | 0xa6f73589243a6A7a9023b1Fa0651b1d89c177111 (opens new window) |
OptimismMintableERC20Factory | 0x883dcF8B05364083D849D8bD226bC8Cb4c42F9C5 (opens new window) |
OptimismPortal | 0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383 (opens new window) |
PortalSender | 0xe7FACd39531ee3C313330E93B4d7a8B8A3c84Aa4 (opens new window) |
ProxyAdmin | 0x01d3670863c3F4b24D7b107900f0b75d4BbC6e0d (opens new window) |
SystemConfig | 0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60 (opens new window) |
SystemDictator | 0x1f0613A44c9a8ECE7B3A2e0CdBdF0F5B47A50971 (opens new window) |
Batch Inbox Address | 0xff00000000000000000000000000000000000420 (opens new window) |
Additional parameters
These parameters are mostly useful to people responsible for running and administering network nodes.
Parameter | Value |
---|---|
L1 Chain ID | 5 |
Rollup Config | This network does not require a rollup config. Specify --network=goerli on the command line |
Withdrawal period | 2 seconds |
# Links
# API Options
Get free access to Optimism through Alchemy (opens new window)
For small scale tests, you can use our public API:
- HTTP endpoint: https://goerli.optimism.io (opens new window) (note, this is for testing. For production, use Alchemy)
You can run a large application for free using Alchemy (opens new window). We’ve done extensive diligence and Alchemy is our recommendation due to reliability, scalability, and data correctness. They're the default API provider and developer platform for top projects like OpenSea and Facebook. They also support websocket functionality, which our public endpoint does not.
To see the full list of providers visit Node & API Providers.
# Test ETH
If you already have Goerli ETH, you can bridge it (opens new window). For more faucet options see Network Faucets.
Ignore other networks
Optimism mainnet and Optimism Goerli are, from Optimism's perspective, production networks. This means our Goerli network is something you can rely on for consistent state and uptime. We have other testnets that we use to test our code (such as the Goerli Nightly network) that we use to test new features. These networks are for us to test, and therefore might not have reliable state & uptime.
If you want to test out our new infrastructure before it is stable, or are interested in working on the latest and greatest protocols please check these networks out! If not, they are best ignored. We try to make sure they work and preserve the state. In the months prior to a major release, such as Bedrock, we may have a different network for testing dapps on that release.
However, we also have other networks such as Goerli Nightly (opens new window). These are networks that are used for internal Optimism development. Unless you are working on the Optimism protocol (rather than building things on top of it), ignore these networks.