7
7
import java .util .List ;
8
8
9
9
/**
10
- * EtherScan - API Descriptions
11
- * https://etherscan.io/apis#accounts
10
+ * EtherScan - API Descriptions https://etherscan.io/apis#accounts
12
11
*
13
12
* @author GoodforGod
14
13
* @since 28.10.2018
@@ -17,79 +16,107 @@ public interface IAccountApi {
17
16
18
17
/**
19
18
* Address ETH balance
19
+ *
20
20
* @param address get balance for
21
21
* @return balance
22
22
* @throws ApiException parent exception class
23
23
*/
24
- @ NotNull Balance balance (String address ) throws ApiException ;
24
+ @ NotNull
25
+ Balance balance (String address ) throws ApiException ;
25
26
26
27
/**
27
28
* ERC20 token balance for address
28
- * @param address get balance for
29
+ *
30
+ * @param address get balance for
29
31
* @param contract token contract
30
32
* @return token balance for address
31
33
* @throws ApiException parent exception class
32
34
*/
33
- @ NotNull TokenBalance balance (String address , String contract ) throws ApiException ;
35
+ @ NotNull
36
+ TokenBalance balance (String address , String contract ) throws ApiException ;
34
37
35
38
/**
36
- * Maximum 20 address for single batch request
37
- * If address MORE THAN 20, then there will be more than 1 request performed
39
+ * Maximum 20 address for single batch request If address MORE THAN 20, then
40
+ * there will be more than 1 request performed
41
+ *
38
42
* @param addresses addresses to get balances for
39
43
* @return list of balances
40
44
* @throws ApiException parent exception class
41
45
*/
42
- @ NotNull List <Balance > balances (List <String > addresses ) throws ApiException ;
46
+ @ NotNull
47
+ List <Balance > balances (List <String > addresses ) throws ApiException ;
43
48
44
49
/**
45
50
* All txs for given address
46
- * @param address get txs for
51
+ *
52
+ * @param address get txs for
47
53
* @param startBlock tx from this blockNumber
48
- * @param endBlock tx to this blockNumber
54
+ * @param endBlock tx to this blockNumber
49
55
* @return txs for address
50
56
* @throws ApiException parent exception class
51
57
*/
52
- @ NotNull List <Tx > txs (String address , long startBlock , long endBlock ) throws ApiException ;
53
- @ NotNull List <Tx > txs (String address , long startBlock ) throws ApiException ;
54
- @ NotNull List <Tx > txs (String address ) throws ApiException ;
58
+ @ NotNull
59
+ List <Tx > txs (String address , long startBlock , long endBlock ) throws ApiException ;
60
+
61
+ @ NotNull
62
+ List <Tx > txs (String address , long startBlock ) throws ApiException ;
63
+
64
+ @ NotNull
65
+ List <Tx > txs (String address ) throws ApiException ;
55
66
56
67
/**
57
68
* All internal txs for given address
58
- * @param address get txs for
69
+ *
70
+ * @param address get txs for
59
71
* @param startBlock tx from this blockNumber
60
- * @param endBlock tx to this blockNumber
72
+ * @param endBlock tx to this blockNumber
61
73
* @return txs for address
62
74
* @throws ApiException parent exception class
63
75
*/
64
- @ NotNull List <TxInternal > txsInternal (String address , long startBlock , long endBlock ) throws ApiException ;
65
- @ NotNull List <TxInternal > txsInternal (String address , long startBlock ) throws ApiException ;
66
- @ NotNull List <TxInternal > txsInternal (String address ) throws ApiException ;
76
+ @ NotNull
77
+ List <TxInternal > txsInternal (String address , long startBlock , long endBlock ) throws ApiException ;
78
+
79
+ @ NotNull
80
+ List <TxInternal > txsInternal (String address , long startBlock ) throws ApiException ;
81
+
82
+ @ NotNull
83
+ List <TxInternal > txsInternal (String address ) throws ApiException ;
67
84
68
85
/**
69
86
* All internal tx for given transaction hash
87
+ *
70
88
* @param txhash transaction hash
71
89
* @return internal txs list
72
90
* @throws ApiException parent exception class
73
91
*/
74
- @ NotNull List <TxInternal > txsInternalByHash (String txhash ) throws ApiException ;
92
+ @ NotNull
93
+ List <TxInternal > txsInternalByHash (String txhash ) throws ApiException ;
75
94
76
95
/**
77
96
* All token txs for given address
78
- * @param address get txs for
97
+ *
98
+ * @param address get txs for
79
99
* @param startBlock tx from this blockNumber
80
- * @param endBlock tx to this blockNumber
100
+ * @param endBlock tx to this blockNumber
81
101
* @return txs for address
82
102
* @throws ApiException parent exception class
83
103
*/
84
- @ NotNull List <TxToken > txsToken (String address , long startBlock , long endBlock ) throws ApiException ;
85
- @ NotNull List <TxToken > txsToken (String address , long startBlock ) throws ApiException ;
86
- @ NotNull List <TxToken > txsToken (String address ) throws ApiException ;
104
+ @ NotNull
105
+ List <TxToken > txsToken (String address , long startBlock , long endBlock ) throws ApiException ;
106
+
107
+ @ NotNull
108
+ List <TxToken > txsToken (String address , long startBlock ) throws ApiException ;
109
+
110
+ @ NotNull
111
+ List <TxToken > txsToken (String address ) throws ApiException ;
87
112
88
113
/**
89
114
* All blocks mined by address
115
+ *
90
116
* @param address address to search for
91
117
* @return blocks mined
92
118
* @throws ApiException parent exception class
93
119
*/
94
- @ NotNull List <Block > minedBlocks (String address ) throws ApiException ;
120
+ @ NotNull
121
+ List <Block > minedBlocks (String address ) throws ApiException ;
95
122
}
0 commit comments