Skip to main content

GET /api/chain/optimism

Optimism chain stats

GET optimism data from chain service

Endpoint​

GET https://api.web3identity.com/api/chain/optimism

Example Request​

curl -s "https://api.web3identity.com/api/chain/optimism" | jq

Responses​

200 Success​

{
"chain": "Optimism",
"tvl": 5678901234.56,
"protocols": 189,
"gasPrice": 0.3,
"blockTime": 2,
"tps": 2000
}

400 Bad request - invalid parameters​

{
"example": "response"
}

402 Payment required​

404 Resource not found​

{
"example": "response"
}

429 Rate Limited​

{
"example": "response"
}

500 Internal Server Error - Something went wrong on our end​

{
"error": "Internal server error",
"code": "INTERNAL_ERROR"
}

Auto-generated from OpenAPI spec