-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathStatisticAPI.java
44 lines (39 loc) · 1.12 KB
/
StatisticAPI.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package io.goodforgod.api.etherscan;
import io.goodforgod.api.etherscan.error.EtherScanException;
import io.goodforgod.api.etherscan.model.Price;
import io.goodforgod.api.etherscan.model.Supply;
import java.math.BigInteger;
import org.jetbrains.annotations.NotNull;
/**
* EtherScan - API Descriptions <a href="https://etherscan.io/apis#stats">...</a>
*
* @author GoodforGod
* @since 30.10.2018
*/
public interface StatisticAPI {
/**
* ERC20 token total Supply
*
* @param contract contract address
* @return token supply for specified contract
* @throws EtherScanException parent exception class
*/
@NotNull
BigInteger supply(String contract) throws EtherScanException;
/**
* Eth total supply
*
* @return total ETH supply for moment
* @throws EtherScanException parent exception class
*/
@NotNull
Supply supply() throws EtherScanException;
/**
* Eth last USD and BTC price
*
* @return last usd/btc price for ETH
* @throws EtherScanException parent exception class
*/
@NotNull
Price lastPrice() throws EtherScanException;
}