Optimism
Optimism
#Overview
OP Mainnet is a low-cost and lightning-fast Ethereum L2 blockchain powered by Optimism. Built as a minimal extension to existing Ethereum software, OP Mainnet's EVM-equivalent architecture scales your Ethereum apps without surprises.
As Optimism is EVM compatible, you can follow the Ethereum documentation to send your first transaction and utilize all other features.
#Configure Optimism
#Mainnet
Mainnet Block Explorer: https://optimistic.etherscan.io
01const customNodeOptions = {
02 rpcUrl: 'https://mainnet.optimism.io',
03 chainId: 10,
04}
05
06// Setting network to Optimism
07const magic = new Magic('YOUR_PUBLISHABLE_API_KEY', { network: customNodeOptions });
#Testnet
Testnet Block Explorer: https://blockscout.com/optimism/goerli/
01const customNodeOptions = {
02 rpcUrl: 'https://goerli.optimism.io',
03 chainId: 420
04}
05
06// Setting network to Optimism
07const magic = new Magic('YOUR_PUBLISHABLE_API_KEY', { network: customNodeOptions });
#Compatibility
- All
Auth
,User
and mostWallet
module methods for any wallet type - All EVM Provider functionality to respond to supported RPC methods
Need a feature or see a problem? File an issue on our github repo.
#Resources & Tools
- Block Explorer:
- https://optimistic.etherscan.io/ (Mainnet)
- https://sepolia-optimism.etherscan.io/ (Sepolia Testnet)