Eth Token Tracker
A JS module for tracking Ethereum tokens and their values over time.
Installation
npm install eth-token-tracker -S
Usage
const TokenTracker = var tokenTracker = userAddress: addresses0 // whose balance to track provider // a web3-style provider pollingInterval: 4000 // block polling interval (optional) // Tell it about the tokens to track: tokens: address: tokenAddress // You can use this method to check the state of the tokensvar balances = tokenTracker // You can also subscribe to updatestokenTracker // You can add additional tokens after initialization:tokenTracker // Make sure to clean up, or it will hold a reference:tokenTracker