Optimism logo

Optimism

RPC & Resources

RPC & Resources

Endpoints, websockets, and devtools

Endpoints, websockets, and devtools

About

Enhance Ethereum with OP's scalable and efficient Layer 2 solutions.

Full Coverage

Stack

Symbol

OP

Gas Token

ETH

Chain ID:

10

Testnet Chain ID:

11155420

Official Links

Real-Time OP Layer 2 Pricing in One Call

Access Optimism via Uniblock's unified blockchain API. Scalable Layer 2 for Ethereum Enhance Ethereum with OP's scalable and efficient Layer 2 solutions.

Code Snippet

INPUT

const options = {method: 'GET', headers: {accept: 'application/json'}};

fetch('https://api.uniblock.dev/uni/v1/market-data/price?symbol=OP', options)

 .then(response => response.json())

 .then(response => console.log(response))

 .catch(err => console.error(err));

OUTPUT

{

 "OP": {

   "btc": 0.00002694,

   "eth": 0.00066894,

   "bnb": 0.00303541,

   "xrp": 2.799986,

   "usd": 1.67,

   "aud": 2.42,

   "cad": 2.25,

   "eur": 1.51,

   "gbp": 1.25,

   "hkd": 12.96,

   "jpy": 239.53,

   "rub": 159.77

 }

}

Build with a team you can reach

Production-grade multi-chain infrastructure, backed by engineers who understand your workload.

Build with a team you can reach

Production-grade multi-chain infrastructure, backed by engineers who understand your workload.

Build with a team you can reach

Production-grade multi-chain infrastructure, backed by engineers who understand your workload.