Package io.api.etherscan.core.impl
Class StatisticApiProvider
- java.lang.Object
-
- io.api.etherscan.core.impl.StatisticApiProvider
-
- All Implemented Interfaces:
IStatisticApi
public class StatisticApiProvider extends java.lang.Object implements IStatisticApi
Statistic API Implementation- Since:
- 28.10.2018
- See Also:
IStatisticApi
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull PricelastPrice()Eth last USD and BTC price@NotNull Supplysupply()Eth total supply@NotNull java.math.BigIntegersupply(java.lang.String contract)ERC20 token total Supply
-
-
-
Method Detail
-
supply
@NotNull public @NotNull Supply supply() throws ApiException
Description copied from interface:IStatisticApiEth total supply- Specified by:
supplyin interfaceIStatisticApi- Returns:
- total ETH supply for moment
- Throws:
ApiException- parent exception class
-
supply
@NotNull public @NotNull java.math.BigInteger supply(java.lang.String contract) throws ApiExceptionDescription copied from interface:IStatisticApiERC20 token total Supply- Specified by:
supplyin interfaceIStatisticApi- Parameters:
contract- contract address- Returns:
- token supply for specified contract
- Throws:
ApiException- parent exception class
-
lastPrice
@NotNull public @NotNull Price lastPrice() throws ApiException
Description copied from interface:IStatisticApiEth last USD and BTC price- Specified by:
lastPricein interfaceIStatisticApi- Returns:
- last usd/btc price for ETH
- Throws:
ApiException- parent exception class
-
-