# Layer 2 Rollups and Subnetworks

The purpose of running subnetworks & Layer 2 rollups adaptations on Oraichain is separating the Mainnet and subnetworks is to scale up the performance of the Mainnet, also known as the Layer 1.

### Oraichain's Layer 2 Rollups

Rollups are Layer 2 solutions dominating Ethereum scaling and have been gaining a great popularity in many networks like Syscoin, Cosmos, and many specific projects like Immutable X, zkSync, StarkWare, Loopring, etc.

There are two types of rollups: optimistic rollups(optimism project) and zk-rollups (zksyncs project). Oraichain has customized these both types in its modules when implementing subnetworks for AI blockchain oracles and OraiDEX.

### Subnetworks

Subnetworks for running DApps on Oraichain Mainnet 2.0 are set to stay in Layer 2 while considerably helping in expanding the capacity of Mainnet but not affecting its core logic and security.

At the moment, Oraichain has launched two subnetworks: VRF Subnetwork and AI Execution Subnetwork.

**Subnetwork executors** play a role as a validator for the working of a subnetwork on Oraichain. Similar to a blockchain validator, an executor participates in the execution and verification of the computation, in this case, the calculation of the random data. However, compared to blockchain validators, VRF or AI Execution subnetwork executors require much less computing resources and don’t need to achieve 100% uptime.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.orai.io/oraichain/system-overview/layer-2-rollups-and-subnetworks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
