Eth代币追踪器
一个JS模块,用于随时间跟踪以太坊令牌及其值。
安装
yarn install '@metamask/eth-token-tracker'
用法
const TokenTracker = require ( '@metamask/eth-token-tracker' )
var tokenTracker = new TokenTracker ( {
userAddress : addresses [ 0 ] , // whose balance to track
provider , // a web3-style provider
pollingInterval : 4000 , // block polling interval (optional)
// Tell it about the tokens
1