ChainsOptimism
Optimism RPC
Connection code snippet
curl
node-fetch
Go
Web3.js
Python
HTTP
Copy code
curl https://optimism.drpc.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"REPLACE_ME_WITH_ACTUAL_METHOD","params":[],"id":1}'
How to add Optimism Mainnet to Metamask using dRPC?The network can be added automatically by clicking on the "Add to wallet" button or manually
Network nameOptimism
New RPC URL
https://optimism.drpc.org
Chain ID
0xa
Currency Symbol
ETH
Block Explorer URL (Optional)
https://optimism.blockscout.com
By clicking on the Optimism icon in the network selection drop-down menu in MetaMask, you can now switch to the Optimism and perform all transactions on that network
FAQ
RPC in Optimism is a protocol that enables direct communication with the Optimism Layer 2 network, allowing users and applications to interact with the blockchain more efficiently, especially for executing transactions and querying data.