30 min
Fablabs Course
3.3.3.1 Session: Introduction to Programmatic Data Access
Introdución
Empathize phase
Problem Statement: Alice needs to check the price of tokens on Uniswap programmatically, as she wants real-time data for her application. She realizes that this will require specific tools and an understanding of blockchain interaction basics.
Guiding Questions for Students:
- Why would someone want to access blockchain data programmatically instead of through an app interface?
- What challenges could arise when retrieving blockchain data compared to data from traditional databases?
- How can Alice ensure that her method is both efficient and accurate?
Define phase
- Discussion: Students discuss various tools and methods for accessing blockchain data programmatically, with a focus on reading token prices.
- Introduction to Tools:
- Web3.js and Ethers.js: Overview of these libraries for blockchain interaction, focusing on their primary features and differences.
- Ethereum Virtual Machine (EVM): Briefly discuss how EVM executes smart contracts and allows users to retrieve specific data from contracts.
- Identify Steps:
- Students outline the high-level steps needed for data retrieval, such as connecting to an Ethereum node, locating the Uniswap contract address, and using the ABI (Application Binary Interface) for interaction.
Licenciado baixo a Licenza Creative Commons Atribución Compartir igual 4.0