nish17 / chainlink

A simple nodejs app which fetches USD prices of digital assets like BTC, ETH, MATIC, LINK, AAVE from Chainlink Polygon Mainnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nodejs app uses Chainlink Data Feed

A simple nodejs app which fetches USD prices of digital assets like BTC, ETH, MATIC, LIN and AAVE from Chainlink Polygon Mainnet.

How to run locally?

# install all the dependencies
$ npm install

# run
$ npm start

🧠 Learnings?

  • web3 providers gives us the ability to interact with the Blockchain Node. I started experimenting using Infura which was based on ethereum, but as I was curious about Polygon, then moved to Alchemy, which gives the polygon mainnet provider.
  • We can also run a local private blockchain using Ganache.

❗Known Issues

  • Promise.all may create issues because of its nature.

❤️ Credits

🎓 License

MIT

About

A simple nodejs app which fetches USD prices of digital assets like BTC, ETH, MATIC, LINK, AAVE from Chainlink Polygon Mainnet

License:MIT License


Languages

Language:TypeScript 98.8%Language:JavaScript 1.2%