# Querying Layer

The Querying Layer is a crucial component of the SyncAI Node, designed to facilitate seamless data retrieval from the Cardano blockchain. It provides essential support for other layers in the system by ensuring they have access to accurate, up-to-date blockchain information. This layer interacts directly with various data sources:

1. **Cardano Node Database:** It queries the node database of the Cardano blockchain, accessing essential information about the current state of the blockchain, including blocks, transactions, and on-chain events. This ensures that the system has a consistent and reliable view of the blockchain's current state.
2. **Smart Contracts:** The Querying Layer interfaces with smart contracts deployed on the Cardano blockchain, retrieving data stored in them. This interaction enables the system to fetch state data from dApps directly.
3. **Project Catalyst Database:** The layer also integrates with the Project Catalyst database, accessing crucial data related to Cardano's community-driven governance and funding initiatives. By querying this database, the system can obtain real-time updates about project proposals, funding status, and voting results.

## **Operational Role:**

* **Data Aggregation:** The Querying Layer aggregates data from different on-chain sources, providing a unified view of the blockchain state.
* **Information Relay:** It relays on-chain information to other layers in the system, enabling them to function effectively by providing accurate blockchain data.

The Querying Layer plays a vital role in ensuring that the SyncAI Node has access to real-time blockchain data. By interfacing with the Cardano blockchain and other critical data sources, it provides the foundation needed for seamless on-chain interaction, enabling the system to support intelligent decision-making and efficient blockchain operations.


---

# 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.syncai.network/sync-node/querying-layer.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.
