A gap for God

Alexina Erickson sat at Eagle Brook Church in White Bear Lake May 10. With ears opened in the second row, she listened to one of her pastors, Steve Hupert, talk to graduating students about how to…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Chainlink and interfaces

The way blockchains are set up now, they do not have a way to take real world data and implement that into a blockchain. So how do we do this?

Well, it would seem that we need a way to collect data and then take that data and use it on the blockchain.

BUT! If we use a single source to gather data, then we have a centralized point for collecting data and all the hard work of making a blockchain becomes pointless.

Enter, chainlink. Chainlink allows a decentralized way to collect information, and then have that information be available on blockchains. Chainlink provides developers with interfaces that smart contracts can then implement to get information.

I like to think of this as making an api call, but instead of the api call coming for a centralized point, it is coming from many different nodes.

Many companies are currently using chainlink, such as Aave and SushiSwap as a way to insure that they are getting the correct prices for things such as ETH.

Using a chainlink interface is quite simple.

If I add this code to my sol file…

I now have access to every method that is inside of this interface. In order to see what is in this interface, just simply google npm chainlink/contracts, click the link to github and follow the path to the file.

If you use the one above, you will discover that this is a price feed. Now once you can deploy your contract, and write functions that will be able to interact with this chainlink contract. It’s a contract inside of a contract, interacting with another contract.

Add a comment

Related posts:

HOW TO CREATE A STRONG AND MEMORABLE PASSWORD

Do you realize that your digital life is almost protected with passwords? Just think about how you log into your computer. You turn it on and soon you are required to type in your password to access…

How Azure Stack Helps Microsoft Deliver The Promise Of Intelligent Cloud And Edge

Last month at the Ignite conference, Microsoft has announced the commercial availability of Azure Stack, the long-awaited hybrid cloud platform from Redmond. The product that was supposed to be…

Leadership Takeaways Patrick Henry QuestFusion CEO

I was fortunate enough to be interviewed by internationally renowned executive coach, Rachael Orchard, from My Pocket Coach, on her program Leadership Takeaways Patrick Henry QuestFusion CEO. Rachael…