Build All The World’s Data Into Powerful dApps. The Chainlink Oracles Are Now Live On The Elrond Devnet.
We are excited to announce that Chainlink oracles have been deployed to the Elrond devnet. Developers can now explore supercharging their dApps with reliable off-chain data from one of the most powerful decentralized data providers.
The blockchain use case with the most significant importance in the current evolution of dApps is decentralized finance. Real-time price feeds are a mandatory component for keeping on-chain financial applications in sync with the global market movements. This makes oracles an essential prerequisite for a thriving DeFi environment.
The Maiar Exchange launch is about to kick start the economic advancement engines in the Elrond ecosystem. Its liquidity will fuel virtually all the DeFi products that will launch on our blockchain. DeFi apps connecting to our DEX AMM will require reliable price feeds from oracles.
This is why we are excited to have completed the integration of Chainlink oracles on the Elrond blockchain in a timely manner. After rigorous internal testing, it is now time for the Elrond partners and developer community to integrate external price feeds into their DeFi applications ahead of deploying them to the Elrond mainnet.
“The Elrond partners and devs are already hard at work using our devkit. With the deployment of Chainlink oracles on our devnet, they get a new and critical component required for deploying Elrond dApps with unlimited scope.” said Lucian Mincu, Elrond Network CIO.
Three different Chainlink price feed smart contracts have been deployed, one for each shard:
- shard-0: erd1qqqqqqqqqqqqqpgqsj7m22r09nu8seqmdrcmn5f6038qqdq7707qvs0pe0
- shard-1: erd1qqqqqqqqqqqqqpgqcwt9uwvhds6nm46vmg68p9899v8zsjyuu00s5u60yz
- shard-2: erd1qqqqqqqqqqqqqpgqjrl8qg7n6f594zvg6hpvrmtmcrvee3yzcvpqx8z6zj
You can query either of the smart contract addresses above - select the one in the same shard as the sender wallet for the best response time - for the latest asset price by sending a transaction as follows:
To: (SC address mentioned above)
Gas limit: 50,000,000
Data: latestPriceFeed@(asset 1)@(asset 2)
Where you should replace (asset 1) and (asset 2) with the HEX encoding of the asset ticker. For example, if you want EGLD/USD you should use
The following assets are available in this test version:
EGLD/USD, BTC/USD, AAVE/USD, LINK/USD, SOL/USD, SNX/USD
Here’s an example of a successful price request for EGLD/USD:
If you want to get all the price feeds for all the available assets, simply query the smart contracts with a similar transaction that has “latestRoundData” in the data field, without any arguments, like so:
Price data is updated in rounds that take about 10 minutes to complete.
Dive into the Chainlink smart contracts, all the available endpoints, and other relevant information here:
Chainlink node runners, make sure to deploy the Elrond adapter and scripts to run your oracles by using these resources:
Start building with Chainlink oracles on the Elrond devnet, contribute and tell us what you think in our dedicated Telegram community:
For more information, please visit us:
Latest news on Elrond
Check out our latest blog posts and updates
Fully Regulated Fund, Skynet EGLD Capital, Raises $40M+ USD To Invest In The Elrond Ecosystem
Elrond DeFi 2.0: The Era Of Autonomous Banking, A 100-Trillion Dollar Opportunity
Onboarding The Next Billion People, Toward A Multi-Trillion Dollar Market