Connect APIs to smart contract with Chainlink

It was great to learn how we can connect APIs to our smart contracts using chainlink.

This tutorial was taught by Zubin Pratap (Developer Advocate, Chainlink). He was able to explain everything in detail. I, not being familiar with Chainlink was able to grasp the core concepts.

Let me share the list of things that I learn from this tutorial:

  • How to use different interfaces in a smart contract and implement their functions.

  • How to use ipfs and opensea to store the NFT metadata and then view it.

  • How to update the NFT based on the value passed to the smart contract functions.

  • How to use chainlink subscriptions to implement a hybrid contract which can easily connect with off-chain data with the help of keepers.

As part of evaluation process of Alchemy, I am answering below questions:

Who are you, and what is your software development background?

I am a web3 enthusiast from India. During my graduation in Computer Science my interest shifted towards Blockchain development and I started building projects which would give more knowledge about this space.

Why did you want to complete this lesson?

I am having no experience with hybrid contracts and this tutorial teaches how we can use chainlink with smart contracts which helps contract to interact with off-chain data.
Due to this reason I wanted to complete this lesson ASAP.

When did you complete the project?

I completed this project on 13 November. There were many points were I got stuck but ultimately I am able to complete this project with challenge.

What technologies did you use?

To complete this project I have use different technologies: ChainLink, hardhat, Javascript, EtherScan, Polyscan.

What did you enjoy about the tutorial?

I really enjoyed the part in which I was able to change the tokenURI based on the higher and lower values passed to the function.

How do you think you can use this technology to build useful applications in the future? What are some specific example applications?

Well, there are many use case where I can use these technologies. One use case I can think of is: Implementing a system where based on the active time in a game the avatar which is a NFT of the user changes. We can automate this thing easily using ChainLink.

Who would you recommend this project to?

I will recommend this project to all of my friends who are struggling with hybrid contracts.

The Alchemy learn and Alchemy university are doing a great work in educating all of us about web3 and blockchain development.

GitHub URL:

Bull NFT at opensea:

Bull and bear contract address/Link:

Mock price feed contract address/Link:

Subscribe to Gautam Rawat
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.