# What is a Layer 2 Security

**Layer 2 solutions** are designed to help blockchains handle more transactions by building on top of the main (Layer 1) blockchain. They provide a way to scale blockchain networks, making them faster and more affordable for users. However, with these benefits come new security challenges.

* **Scalability and Security**:
  * Layer 2 solutions allow for increased **scalability** by processing transactions off the main chain, which reduces congestion and lowers fees.
  * However, this added scalability often comes with **trade-offs** in terms of security. Because transactions are happening outside of the main blockchain, there’s a need for extra checks to ensure these transactions are still secure and properly validated.
  * Balancing scalability and security is crucial. While Layer 2 solutions make blockchain technology more accessible, they introduce new points of vulnerability that must be managed carefully.


---

# 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://doc.auditx.net/auditx-ecosystem/layer-2-scaling-audits/what-is-a-layer-2-security.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.
