Oracles
Oracles are data feeds that enable smart contracts on the blockchain to access off-chain data sources. This functionality is crucial, as Ethereum-based smart contracts are inherently unable to access information stored outside the blockchain network by default. For further information, you can explore Ethereum's Oracle documentation.
There are already oracle services available on Conflux eSpace.
Pyth
Pyth Network has announced it is shutting down Conflux eSpace support on July 31, 2026. Contracts reading prices from the Pyth contract on eSpace will stop receiving updates after that date.
A Conflux-maintained, Pyth-compatible price oracle is deployed as a drop-in read-side replacement — source at conflux-fans/oracle-contracts, deployed at 0x5286BD91e2C79fE066926a15193C7e531bBF6750 on eSpace mainnet and 0x838c40B3904FAfBc21b670c97b0dFeE7D8D0a016 on testnet. The spot price read functions and price feed IDs are unchanged for the major assets.
Pyth is a renowned oracle service in the industry, offering Smarter Data for Smarter Contracts. It ensures the security of your smart contracts by providing reliable, low-latency market data sourced from institutional-grade providers. Developers can build applications utilizing high-fidelity oracle feeds, specifically designed for mission-critical systems.
Pyth remains integrated in Conflux eSpace until the sunset date above. See its documentation for how to use it in your smart contracts.
Wit/Oracle
The Wit/Oracle is a public, permissionless, and fully decentralized Proof-of-Stake blockchain that is powered by its own cryptocurrency, the $WIT coin.
By means of the Wit/Oracle Bridging Framework (a set of verified and counter-factual smart contracts deployed by the Witnet Foundation), all data that is publicly accessible on the Internet using HTTP/GET, HTTP/POST or even HTTP/HEAD requests, can be attested, aggregated and brought right into your smart contracts, truthful to the data sources being referred.
The most versatile, seamless and trustworthy oracle solution for your smart contracts:
- Versatile
- Access to data of any type, not just price feeds.
- Build your own custom and parameterized data feeds.
- Rely on any combination of public sources and APIs on the Internet.
- Fetch fully unpredictable and unbiased randomness.
- Link contracts across multiple chains via CCDRs (i.e. Cross Chain Data Requests).
- Seamless
- Pull data updates straight from your smart contracts.
- Pay queries to the Wit/Oracle in plain $CFX currency.
- No need to pre-fund your contracts with third-party ERC-20 tokens.
- No need to undergo off-chain subscriptions, nor KYC workflows.
- No need to run your own nodes, nor any other sort of infrastructure.
- Trustworthy
- Improve data reliability by relying on multiple data sources.
- Settle the size of witnessing committees depending on your security concerns.
- Witnessing committee members get randomnly selected upon every data update.
- Formally verify data sources, off-chain computations and sampling timestamps.
You can check start building now for the introduction of the Witnet solidity package and contracts framework as well as the tutorial of how to build and pull your own custom data feeds. .
FAQs
Does chainlink support Conflux?
Currently Chainlink is not integrated in Conflux eSpace, we are working on it.