๐Ÿ“ˆUsing Witnet Price Feeds

The Wit/Oracle Framework is a set of smart contracts deployed by the Witnet Foundation on a wide selection of EVM chains and L2s. This framework enables bidirectional interconnection between smart contracts and the Witnet public blockchain to retrieve, aggregate and deliver real-world data from one or multiple public sources on the Internet, the IPFS network or even other blockchains.

Witnet securely collects data using cryptographic, crowd-attestation and Proof-of-Stake consensus mechanisms. Every oracle data query and its outcome, whether successful or not, is permanently and publicly recorded on the Witnet blockchain.

The Wit/Oracle Framework provides secure, reliable, and permissionless access to both third-party subsidized and self-service price feeds through a PUSH-like mechanism. Additionally, it includes the necessary tools and methods for reporting on-demand updates with a PULL-like approach.


Reading Witnet price feeds

Reading the latest update of a Witnet price feed is extremely simple. All you need to know is the address of some WitPriceFeeds routing contract, and how the price feed is named within such contract.

This example obtains the latest BTC/USD-6 price update, subsidized by the Witnet Foundation:

Verifying data trustworthiness

Consumers can validate multiple quality metrics for each supported price feed.

This example verifies whether the BTC/USD price feed is backed up by at least two independent oracle solutions or is sourced from at least three public data providers. In the latter scenario, it confirms that a minimum of 5 witnessing nodes are randomly selected in Witnet to agree on the result for each price update.

Listing supported price feeds

Consumers can dynamically check the list of supported price feeds within a WitPriceFeeds instance, along with additional details such as trackable data sources (if any), potential oracle fallback strategies, price updating conditions and possible dependencies on other price feeds:

To see the list of price feeds currently subsidized by the Witnet Foundation, please visit this link.


Learn more about Witnet Price Feeds

For more information on how to interact with WitPriceFeeds contracts, please go to:

๐Ÿ“ˆWitnet Price Feeds

Last updated

Was this helpful?