Price Feeds
Last updated
Was this helpful?
Last updated
Was this helpful?
The easiest way to use an oracle to source external data into a smart contract is through a . More and more projects building on multiple blockchains are relying every day on the WItnet data feeds to get price references and other valuable data into their smart contracts.
Witnet price feeds are timely updated with fresh data as aggregated from multiple reliable data sources and attested by the Witnet decentralized oracle network, which offers high data integrity guarantees thanks to its unique cryptoeconomic design.
Using Witnet data feeds to source prices and other data is extremely simple. This example obtains the latest price using the Ethereum Rinkeby testnet:
A complete list of publicly available Witnet data feeds on Witnet's many supported blockchains can be found in the Witnet Data Feeds website:
The IWitnetPriceRouter
and IWitnetPriceFeed
interfaces can be found in the , among many other Witnet related interfaces, contracts and utilities.
The section also contains a list of all the data feeds that Witnet provides on the different supported blockchains:
For more information on Witnet price feeds, please read the section dedicated to . This contains a lot more information on alternative ways to consume the data feeds, how they operate, and what their contract addresses are.