{"repo":"shawntabrizi/ERC20-Token-Balance","free":true,"listed":false,"github":"https://github.com/shawntabrizi/ERC20-Token-Balance","clone":"git clone https://github.com/shawntabrizi/ERC20-Token-Balance.git","description":"This is an extension of the \"Hello World\" project for Ethereum and Web3.js which allows you to query the ERC-20 token balance of an Ethereum address.","language":"JavaScript","stars":65,"topics":["ethereum","web3js"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"ERC-20 Token Balance Query the ERC-20 token balance of any Ethereum address — a simple \"Hello World\" for interacting with smart contracts. Try it out: shawntabrizi.com/ERC20-Token-Balance How It Works 1. Enter an Ethereum address to get its ETH balance 2. Enter an ERC-20 token contract address to get the token balance, name, and symbol Uses ethers.js to query the Ethereum blockchain. Connects to your browser wallet (MetaMask, etc.) if available, otherwise falls back to a free public RPC endpoint. Example Token Contracts Token Contract Address ------- ----------------- USDC 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 USDT 0xdAC17F958D2ee523a2206206994597C13D831ec7 DAI 0x6B175474E89094C44Da98b954EedeAC495271d0F Related Projects - ETH Balance — Get the ETH balance of an address - ETH Transaction Graph — Visualize Ethereum transactions in real time License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/shawntabrizi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shawntabrizi/ERC20-Token-Balance/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}