📈Price Feeds
The easiest way to use an oracle to source external data into a smart contract is through a Price Feed. 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 Price Feeds, in a nutshell
Using Witnet data feeds to source prices and other data is extremely simple. This example obtains the latest BTC/USD-6 price using the Ethereum Rinkeby testnet:
The IWitnetPriceRouter
and IWitnetPriceFeed
interfaces can be found in the witnet-solidity-bridge
npm package, among many other Witnet related interfaces, contracts and utilities.
What Price Feeds Are Currently Available?
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 Price Feeds Contract Addresses section also contains a list of all the data feeds that Witnet provides on the different supported blockchains:
Multi-chain AddressesLearn More About Witnet Price Feeds
For more information on Witnet price feeds, please read the section dedicated to Witnet Price Feeds. This contains a lot more information on alternative ways to consume the data feeds, how they operate, and what their contract addresses are.
Last updated