> For the complete documentation index, see [llms.txt](https://qi-blockchain.gitbook.io/qie-oracle/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qi-blockchain.gitbook.io/qie-oracle/faqs/whats-the-gas-cost-for-fetching-data.md).

# ⛽ What’s the Gas Cost for Fetching Data?

* Fetching prices from QIE Oracle contracts is **read-only** and uses Solidity’s `view` functions.
* When called externally (e.g., via `eth_call`), **no gas** is consumed to read data on-chain.
* Gas is only required if the price data is used inside a **state-changing transaction** (for example, a function that modifies contract storage).

#### 💡 Tips for Gas Optimization

* Use **caching** strategies to minimize repeated oracle calls within the same transaction or block.
* Implement **sanity checks** off-chain or in smart contracts to avoid unnecessary state updates triggered by anomalous data.

#### ✅ Summary

QIE Oracle provides frequent, secure, and **cost-efficient access** to real-time asset prices. Developers can request new assets and trust transparent, auditable updates to power DeFi, gaming, and tokenized asset applications on QIE Layer 1.
