import { IPriceToken } from './interfaces'; import * as Utils from './utils'; export declare class ERC20Analyser { protected _configuration: Utils.Configuration; constructor(cryptocompareKey: string, etherscanKey: string); /** * Function to get all transactions of ERC-20 tokens by address */ getAllTransactions: (address: string) => any; /** * Function to get current balance of ETH */ getCurrentEthBalance: (address: string) => any; /** * Function to get outgoing transactions by address */ getOutTransactions: (address: string) => Promise; /** * Function to get incoming transactions by address */ getInTransactions: (address: string) => Promise; /** * Function for get token price by date * * @param tokenSymbol {string} To start * @param timestamp {string | number} Unix Timestamp * @param toConvert {string} Default: ETH */ getPriceToken: (obj: IPriceToken) => Promise; /** * Function return sum of incoming and outcoming transactions * But function does not take into account the current hold */ getResultERC20Transactions: (address: string) => Promise; /** * Function to get current price token * Example: * ERC20Analyser.getCurrentPriceToken('BNB', 'ETH').then(response => { * console.log(response); // return number * }) */ getCurrentPriceToken: (tokenName: string, toCryptoCurrency: string) => Promise; /** * Function to get current token balance by contract address */ getCurrentERC20TokenBalance: (address: string, contract: string) => Promise; /** * Function to get all balance (with hold) */ getERC20TokenBalanceWithHold: (address: string) => Promise; }