Package io.goodforgod.api.etherscan
Class StatisticAPIProvider
java.lang.Object
io.goodforgod.api.etherscan.BasicProvider
io.goodforgod.api.etherscan.StatisticAPIProvider
- All Implemented Interfaces:
StatisticAPI
Statistic API Implementation
- Since:
- 28.10.2018
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticAPIProvider(RequestQueueManager queue, String baseUrl, EthHttpClient executor, Converter converter, int retry) -
Method Summary
Modifier and TypeMethodDescription@NotNull PriceEth last USD and BTC price@NotNull Weisupply()Returns the current amount of Ether in circulation excluding ETH2 Staking rewards and EIP1559 burnt fees.@NotNull WeiERC20 token total Supply EtherScan Returns the current amount of an ERC-20 token in circulation.@NotNull EthSupplyReturns the current amount of Ether in circulation, ETH2 Staking rewards, EIP1559 burnt fees, and total withdrawn ETH from the beacon chain.Methods inherited from class io.goodforgod.api.etherscan.BasicProvider
convert, getMaximumOffset, getRequestUsingOffset, getResponse, getResponse, getResponse, postRequest, postRequest, postRequest
-
Constructor Details
-
StatisticAPIProvider
public StatisticAPIProvider(RequestQueueManager queue, String baseUrl, EthHttpClient executor, Converter converter, int retry)
-
-
Method Details
-
supply
Description copied from interface:StatisticAPIReturns the current amount of Ether in circulation excluding ETH2 Staking rewards and EIP1559 burnt fees.- Specified by:
supplyin interfaceStatisticAPI- Returns:
- total ETH supply for moment
- Throws:
EtherScanException- parent exception class
-
supplyTotal
Description copied from interface:StatisticAPIReturns the current amount of Ether in circulation, ETH2 Staking rewards, EIP1559 burnt fees, and total withdrawn ETH from the beacon chain.- Specified by:
supplyTotalin interfaceStatisticAPI- Returns:
- total ETH supply for moment
- Throws:
EtherScanException- parent exception class
-
supply
Description copied from interface:StatisticAPIERC20 token total Supply EtherScan Returns the current amount of an ERC-20 token in circulation.- Specified by:
supplyin interfaceStatisticAPI- Parameters:
contract- contract address- Returns:
- token supply for specified contract
- Throws:
EtherScanException- parent exception class
-
priceLast
Description copied from interface:StatisticAPIEth last USD and BTC price- Specified by:
priceLastin interfaceStatisticAPI- Returns:
- last usd/btc price for ETH
- Throws:
EtherScanException- parent exception class
-