# Optimism RPC Node  
The Original Optimistic Rollup

Connect to Optimism (OP Mainnet), the pioneering Ethereum Layer 2 and home of the OP Stack. Experience low fees, EVM equivalence, and the growing Superchain ecosystem.

[Documentation](https://docs-rpc.crypto-chief.com/chains/optimism) [Get a free endpoint ](https://auth.crypto-chief.com/registration)

##### 15 M+

Requests per Day

##### 99.9 %

Network Uptime

##### < 100 ms

Average Response Time

##### 24/7

Technical Support

## Specification Optimism Network

Technical characteristics and available endpoints

![Optimism (OP Mainnet)](/img/protocols/optimism.svg)

### Optimism (OP Mainnet)

Mainnet & Testnet Support — OP Sepolia

Chain ID 10

Protocol HTTPS / WSS

Uptime 99.9%

Block Time \~2s

Consensus Optimistic Rollup

EVM Compatible Yes (EVM Equivalent)

Optimism (OP Mainnet) is the original and pioneering Ethereum Layer 2 using optimistic rollup technology. As the creator of the OP Stack — now powering Base, Worldcoin, and dozens of other chains in the Superchain ecosystem — Optimism combines proven technology with a vision for scalable, interoperable blockchains governed by its community.

#### Key capabilities:

- Pioneer of optimistic rollup technology since 2021
- EVM equivalence — identical to Ethereum for developers
- Transaction fees 10-20x lower than Ethereum mainnet
- OP Stack — modular, open-source L2 framework
- Superchain ecosystem — interoperable network of OP chains
- Retroactive Public Goods Funding (RetroPGF)
- Strong DeFi ecosystem with $500M+ TVL
- Governance by OP token holders
- 2-second block time with reliable finality

#### 🔗 RPC Endpoints

HTTPS

`https://rpc.crypto-chief.com/optimism/{YOUR_API_KEY}`

WSS

`wss://rpc.crypto-chief.com/optimism/ws/{YOUR_API_KEY}`

Replace {YOUR\_API\_KEY} with your actual API key from the dashboard.

### Need testnet ETH? Try the Optimism Faucet

Free native testnet ETH and test USDT on **OP Sepolia** — claim instantly from your Crypto Chief dashboard before going to mainnet.

[Open faucet](/faucet/optimism-sepolia/)

## What is an Optimism RPC Node?

Access the original Ethereum Layer 2

An Optimism RPC node provides applications with access to OP Mainnet, the pioneering optimistic rollup and foundation of the Superchain ecosystem. Optimism enables low-cost Ethereum transactions while maintaining full EVM equivalence, making it a seamless migration path for Ethereum developers.

### Why Optimism matters

Optimism didn't just create a Layer 2 — it created the OP Stack, a modular framework now powering an ecosystem of interoperable chains including Base (Coinbase), Worldcoin, Zora, and Mode. This vision of the 'Superchain' — multiple L2s sharing security and seamlessly communicating — represents the future of Ethereum scaling.

**Optimism advantages:**

- **EVM equivalence** — identical to Ethereum, zero code changes
- **OP Stack** — powers the Superchain ecosystem
- **Low fees** — 10-20x cheaper than Ethereum mainnet
- **Proven technology** — battle-tested since 2021
- **Strong ecosystem** — major DeFi protocols and dApps
- **RetroPGF** — funds public goods and infrastructure

### How optimistic rollups work

Optimistic rollups assume transactions are valid by default (optimistic assumption). Transactions are executed off-chain, bundled, and posted to Ethereum. A 7-day challenge period allows anyone to submit fraud proofs if invalid transactions are detected. This approach achieves massive scalability while inheriting Ethereum's security.

**Optimism architecture:**

1. Users submit transactions to Optimism sequencer
2. Sequencer executes transactions and produces blocks (\~2s)
3. Transaction data batched and posted to Ethereum L1
4. 7-day challenge period for fraud proof verification
5. State finalized on Ethereum after challenge period

### The Superchain vision

The **Superchain** is Optimism's vision for a network of OP Stack chains that share security, bridging, and governance. Chains like Base, Mode, and Zora can seamlessly communicate, share liquidity, and benefit from Ethereum's security — creating a scalable, interoperable blockchain network.

This approach contrasts with isolated L2s, instead building toward a unified, modular ecosystem where chains specialize while remaining interconnected.

## Technical Documentation

Quick start for developers

### Supported RPC Methods

Optimism supports all standard Ethereum JSON-RPC methods with full EVM equivalence:

- **eth\_blockNumber** — current L2 block number
- **eth\_getBalance** — ETH balance on Optimism
- **eth\_call** — execute view functions
- **eth\_sendRawTransaction** — broadcast transactions
- **eth\_getTransactionReceipt** — transaction confirmation
- **eth\_getLogs** — event logs with filters
- **eth\_gasPrice** — current L2 gas price
- **eth\_estimateGas** — gas estimation
- **optimism\_outputAtBlock** — OP-specific output root
- **eth\_subscribe** — WebSocket subscriptions

### Code Examples

💻

#### JavaScript (ethers.js) — Optimism Connection:

```
const { ethers } = require('ethers');

const provider = new ethers.JsonRpcProvider('https://rpc.crypto-chief.com/optimism/YOUR_API_KEY');

// Verify we're on Optimism
const network = await provider.getNetwork();
console.log('Chain ID:', network.chainId); // 10

// Get ETH balance on Optimism
const balance = await provider.getBalance('0x...');
console.log('OP ETH:', ethers.formatEther(balance));

// Interact with Velodrome (major Optimism DEX)
const VELODROME_ROUTER = '0xa062aE8A9c5e11aaA026fc2670B0D65cCc8B2858';
const routerABI = ['function getAmountsOut(uint, address[]) view returns (uint[])'];
const router = new ethers.Contract(VELODROME_ROUTER, routerABI, provider);

// Get price quote
const weth = '0x4200000000000000000000000000000000000006';
const usdc = '0x7F5c764cBc14f9669B88837ca1490cCa17c31607';
const amounts = await router.getAmountsOut(
  ethers.parseEther('1'),
  [weth, usdc]
);
console.log('1 ETH =', Number(amounts[1]) / 1e6, 'USDC');
```

💻

#### Python (web3.py) — Optimism Setup:

```
from web3 import Web3

w3 = Web3(Web3.HTTPProvider('https://rpc.crypto-chief.com/optimism/YOUR_API_KEY'))

print('Connected to Optimism:', w3.is_connected())
print('Chain ID:', w3.eth.chain_id)  # 10
print('Latest block:', w3.eth.block_number)
print('Gas price:', w3.eth.gas_price, 'wei')

# Very low gas on Optimism
gas_gwei = w3.from_wei(w3.eth.gas_price, 'gwei')
print(f'Gas: {gas_gwei} Gwei')
```

💻

#### WebSocket — Real-Time Optimism Updates:

```
const { ethers } = require('ethers');
const provider = new ethers.WebSocketProvider('wss://rpc.crypto-chief.com/optimism/ws/YOUR_API_KEY');

// Monitor new blocks (every ~2s)
provider.on('block', async (blockNumber) => {
  const block = await provider.getBlock(blockNumber);
  console.log(`OP block ${blockNumber}: ${block.transactions.length} txs`);
});

// Monitor OP token transfers
const OP_TOKEN = '0x4200000000000000000000000000000000000042';
const filter = {
  address: OP_TOKEN,
  topics: [ethers.id('Transfer(address,address,uint256)')]
};

provider.on(filter, (log) => {
  console.log('OP transfer:', log);
});
```

### Optimism Best Practices

- **EVM Equivalence:** Deploy Ethereum contracts unchanged
- **Gas Optimization:** L1 data costs are largest component
- **Withdrawals:** 7-day challenge period for L2→L1
- **Predeploys:** Use Optimism predeploys for L1/L2 messaging
- **Superchain:** Consider cross-chain messaging with other OP chains
- **Testing:** Test on OP Sepolia before mainnet

## Why choose us?

Enterprise Optimism infrastructure

### High Performance

Optimized infrastructure delivering &lt;65ms latency with intelligent routing and OP Stack-specific caching strategies.

### Production Grade

Enterprise-grade security with 99.9% uptime, DDoS protection, and redundant architecture for mission-critical applications.

### Comprehensive Analytics

Monitor Optimism-specific metrics including L1 data costs, sequencer activity, and Superchain interactions.

### Global Network

Strategically deployed nodes across continents ensuring low latency for Optimism's global user base.

### Auto-Scaling

Infrastructure automatically scales during high traffic maintaining consistent performance across all conditions.

### OP Stack Experts

24/7 support from engineers with deep Optimism, OP Stack, and Superchain ecosystem expertise.

## Examples of Use

Build on the Superchain foundation

Optimism's proven technology and Superchain vision make it ideal for DeFi protocols, NFT platforms, and applications requiring Ethereum security with Layer 2 economics.

#### DeFi Protocols

Launch DeFi applications on Optimism with established protocols like Velodrome, Aave, and Uniswap. Low fees enable sophisticated strategies and high-frequency operations.

#### NFT Platforms

Build NFT marketplaces and collections on Optimism. Low minting and trading costs make NFTs accessible for creators and collectors alike.

#### Superchain Applications

Develop cross-chain applications leveraging the Superchain ecosystem. Build protocols that seamlessly interact with Base, Mode, Zora, and other OP Stack chains.

#### Wallet Integration

Integrate Optimism into multi-chain wallets. Our infrastructure ensures smooth transaction processing and balance tracking for millions of users.

#### Blockchain Gaming

Create blockchain games on Optimism where low fees enable frequent in-game transactions and asset transfers without prohibitive costs.

#### Bridge & Infrastructure

Build bridges, relayers, and infrastructure services connecting Optimism to other chains. Support the growing Superchain ecosystem.

## Got questions?  
we are here to help

## What is Optimism? 

Optimism (OP Mainnet) is the original Ethereum Layer 2 using optimistic rollup technology. It's the foundation of the OP Stack and Superchain ecosystem.

## What is the OP Stack? 

The OP Stack is Optimism's modular, open-source framework for building Layer 2 chains. It powers Base, Worldcoin, Zora, Mode, and dozens of other chains.

## What is the Superchain? 

The Superchain is a network of OP Stack chains that share security, bridging, and governance — creating an interoperable ecosystem of Layer 2s.

## How much do Optimism transactions cost? 

Optimism transactions typically cost $0.10-$1.00, which is 10-20x cheaper than Ethereum mainnet depending on L1 gas prices.

## Is Optimism EVM compatible? 

Yes, Optimism is EVM-equivalent — identical to Ethereum. Deploy contracts without any code changes using all standard Ethereum tools.

## How long do Optimism withdrawals take? 

Withdrawals from Optimism to Ethereum take 7 days due to the optimistic rollup challenge period. Fast bridges can reduce this for a fee.

## What is the OP token? 

OP is Optimism's governance token used for voting on protocol upgrades and funding public goods through RetroPGF (Retroactive Public Goods Funding).

## How is Optimism different from Arbitrum? 

Both use optimistic rollups, but Optimism pioneered the OP Stack framework and Superchain vision. Arbitrum has larger TVL, while Optimism leads in modularity.

## Do you support OP Sepolia testnet? 

Yes, we provide RPC access to both Optimism mainnet (Chain ID 10) and OP Sepolia testnet for development and testing.

## Can I deploy the same contract on Base and Optimism? 

Yes, both use OP Stack and are EVM-equivalent. The same contract code works on Optimism, Base, and other Superchain networks.

## Pricing that grows with your needs.

### Free

Start building on Web3 — no credit card.

##### $0

- 5 reqs/sec RPC
- 5 reqs/min Unified API
- 1 req/day AML
- Ultimate chains
- WSS, Statistics
- Community support

[Get started ](https://auth.crypto-chief.com/registration)

### Pay for use

Flexible pay-as-you-go for any workload.

##### From $10

- 400 reqs/sec RPC
- 300 reqs/min Unified API
- 5 reqs/sec AML
- EventStream
- Ultimate chains
- WSS, Whitelists, Statistics
- Support portal

[Get started](https://auth.crypto-chief.com/registration)

### Subscription

From $500 monthly plus 20% extra value.

##### From $500

- 400 reqs/sec RPC
- 300 reqs/min Unified API
- 5 reqs/sec AML
- EventStream
- Ultimate chains
- WSS, Whitelists, Statistics
- Support portal

[Get started ](https://auth.crypto-chief.com/registration)

### Enterprise

Tailored solution for expert builders

##### Custom terms

All Subscription features plus:

- Flexible rate limits
- Engineering team support
- Custom SLA
- Personal manager

[Contact Sales ](/contact/)
