Module to analyse ERC20-Token balance of address
What is ERC20-Analyser?
This is a library for calculating the profit or loss of ETH-address.
This is a non-profit & opensource project for developers. If you want to use this project for commercial goals, you need to buy commercial API (for third party services).
Getting started
Install erc20-analyser
npm i erc20-analyser
Get API keys to third-party services
Usage
Initialization
; ;; ;
Get current portfolio of ERC20-Token transactions with current hold
analyser.getERC20TokenBalanceWithHold'0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'.then;
Get Ethereum balance by ETH address
analyser.getCurrentEthBalance'0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'.then;
Get all incoming ERC20-Token transactions
analyser.getInTransactions'0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'.then;
Get all outgoing ERC20-Token transactions
analyser.getOutTransactions'0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'.then;
Get ERC20-Token price by date (displayed on the ETH)
analyser.getPriceToken.then;
Get ERC20-Token price by current date
analyser.getCurrentPriceToken'BNB', 'ETH'.then;
Get current token balance by contract address
analyser.getResultErc20Transactions'0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B', '0xe25b0bba01dc5630312b6a21927e578061a13f55'.then;