77import java .util .List ;
88
99/**
10- * EtherScan - API Descriptions
11- * https://etherscan.io/apis#accounts
10+ * EtherScan - API Descriptions https://etherscan.io/apis#accounts
1211 *
1312 * @author GoodforGod
1413 * @since 28.10.2018
@@ -17,79 +16,107 @@ public interface IAccountApi {
1716
1817 /**
1918 * Address ETH balance
19+ *
2020 * @param address get balance for
2121 * @return balance
2222 * @throws ApiException parent exception class
2323 */
24- @ NotNull Balance balance (String address ) throws ApiException ;
24+ @ NotNull
25+ Balance balance (String address ) throws ApiException ;
2526
2627 /**
2728 * ERC20 token balance for address
28- * @param address get balance for
29+ *
30+ * @param address get balance for
2931 * @param contract token contract
3032 * @return token balance for address
3133 * @throws ApiException parent exception class
3234 */
33- @ NotNull TokenBalance balance (String address , String contract ) throws ApiException ;
35+ @ NotNull
36+ TokenBalance balance (String address , String contract ) throws ApiException ;
3437
3538 /**
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+ *
3842 * @param addresses addresses to get balances for
3943 * @return list of balances
4044 * @throws ApiException parent exception class
4145 */
42- @ NotNull List <Balance > balances (List <String > addresses ) throws ApiException ;
46+ @ NotNull
47+ List <Balance > balances (List <String > addresses ) throws ApiException ;
4348
4449 /**
4550 * All txs for given address
46- * @param address get txs for
51+ *
52+ * @param address get txs for
4753 * @param startBlock tx from this blockNumber
48- * @param endBlock tx to this blockNumber
54+ * @param endBlock tx to this blockNumber
4955 * @return txs for address
5056 * @throws ApiException parent exception class
5157 */
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 ;
5566
5667 /**
5768 * All internal txs for given address
58- * @param address get txs for
69+ *
70+ * @param address get txs for
5971 * @param startBlock tx from this blockNumber
60- * @param endBlock tx to this blockNumber
72+ * @param endBlock tx to this blockNumber
6173 * @return txs for address
6274 * @throws ApiException parent exception class
6375 */
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 ;
6784
6885 /**
6986 * All internal tx for given transaction hash
87+ *
7088 * @param txhash transaction hash
7189 * @return internal txs list
7290 * @throws ApiException parent exception class
7391 */
74- @ NotNull List <TxInternal > txsInternalByHash (String txhash ) throws ApiException ;
92+ @ NotNull
93+ List <TxInternal > txsInternalByHash (String txhash ) throws ApiException ;
7594
7695 /**
7796 * All token txs for given address
78- * @param address get txs for
97+ *
98+ * @param address get txs for
7999 * @param startBlock tx from this blockNumber
80- * @param endBlock tx to this blockNumber
100+ * @param endBlock tx to this blockNumber
81101 * @return txs for address
82102 * @throws ApiException parent exception class
83103 */
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 ;
87112
88113 /**
89114 * All blocks mined by address
115+ *
90116 * @param address address to search for
91117 * @return blocks mined
92118 * @throws ApiException parent exception class
93119 */
94- @ NotNull List <Block > minedBlocks (String address ) throws ApiException ;
120+ @ NotNull
121+ List <Block > minedBlocks (String address ) throws ApiException ;
95122}
0 commit comments