How Oracles work in Qubic Smart Contracts
mainOracles allow Smart Contracts to query off-chain data via the QPI (Qubic Programming Interface).
The Architecture:
- Core Nodes: Run the smart contracts and initiate queries.
- Oracle Machine (OM) Nodes: Act as a bridge between Core nodes and external Oracles. They process queries asynchronously.
- Oracles: Independent external data sources that provide information to OM nodes.
- Quorum: Once an OM node receives a reply, Core nodes must reach a quorum of 451 agreeing reply commits before the data is confirmed on-chain.
Fees: Queries are subject to fees to prevent spam. These fees are destroyed (not added to the execution reserve).