Price Oracles
Price oracles gather real-world market prices and record them in the blockchain so that other tools and technology can access this data directly.
Blockchains can't inherently interact with and "know" what's happening off the network, but many of its use cases in decentralized finance require this information. Price oracles solve this problem by putting the data on-chain where decentralized apps can find it. Like blockchains, most oracles are also decentralized and validate data through multiple nodes.
Generally speaking, oracles aren't limited to only providing financial information like asset prices, exchange rates, or interest rates. They can provide any type of info, such as what sports team won a game, or even the weather. The XRP Ledger's Price Oracle feature, however, is designed specifically for reporting the prices of assets.
Requires the PriceOracle amendment. Loading...
How Oracles Work
Most oracle blockchain interactions work like this:
- Data is validated offchain by a decentralized oracle network.
- The data is sent to the blockchain.
- The blockchain uses that information to execute a smart contract, such as releasing funds from an escrow.
This process can also work in reverse, pushing transaction information to external systems.
Price Oracles on the XRP Ledger
XRPL price oracles are a native, on-chain oracle, enhancing the native DeFi functionality of the XRP Ledger. Off-chain price oracles send their data to XRPL oracles, which store that information on-chain. Decentralized apps can then query the XRPL oracles for price data; multiple XRPL oracles can be queried to minimize risk and inaccuracies.
By standardizing price feeds in this manner, all XRPL apps can access a dependable, shared data source.