Blockchain Development Programming Tutorials, Guides & Best Practices
Explore 30+ expertly crafted blockchain development tutorials, components, and code examples. Stay productive and build faster with proven implementation strategies and design patterns from DeveloperBreeze.
Adblocker Detected
It looks like you're using an adblocker. Our website relies on ads to keep running. Please consider disabling your adblocker to support us and access the content.
How to Query ERC-20 Token Balances and Transactions Using Ethers.js and Etherscan API
By the end of this tutorial, you will be able to:
- Query the balance of ERC-20 tokens for an Ethereum address.
- Retrieve ERC-20 token transfer histories using the Etherscan API.
Understanding and Using the Etherscan API to Query Blockchain Data
npm install axiosLet’s create a Node.js script to query the balance of an Ethereum wallet using the Etherscan API.
Tracking Solana Address for New Trades and Amounts
Step 3: Track a Specific Solana Address
We'll now write a function to track a specific Solana address and log new trades: