> For the complete documentation index, see [llms.txt](https://fluxnet.gitbook.io/fluxnet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fluxnet.gitbook.io/fluxnet/fluxnet-architecture/bringing-data-to-blockchain.md).

# Bringing Data To Blockchain

### How FLUXNET Brings Data to the Blockchain

#### Pull-Based Oracle Mechanism

FLUXNET employs a **pull-based oracle** model, where the data is fetched only when requested by the consumer contract. This approach contrasts with traditional push-based oracles that continuously send data to the blockchain, often leading to inefficiencies and higher costs.

**Benefits of Pull-Based Oracles:**

* **Efficiency:** Reduces unnecessary data updates, saving on gas fees.
* **Timeliness:** Ensures the most recent data is used at the time of request.
* **Customization:** Allows for specific data requests tailored to the application's needs.

#### FLUXNET Nodes and Off-Chain Data Aggregation

The FLUXNET network consists of decentralized nodes that are responsible for:

* **Listening for Data Requests:** Nodes monitor the blockchain for data request events emitted by consumer contracts.
* **Fetching Data from External Sources:** Upon detecting a request, nodes retrieve the required data from verified external APIs or data providers.
* **Data Aggregation and Verification:** Nodes may aggregate data from multiple sources to enhance reliability and perform cryptographic verification to ensure data integrity.
* **Returning Data to the Blockchain:** Nodes send the fetched data back to the oracle contract on the blockchain, which then makes it available to the consumer contract.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://fluxnet.gitbook.io/fluxnet/fluxnet-architecture/bringing-data-to-blockchain.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.
