@@ -21,86 +21,115 @@ public interface IProxyApi {
2121 /**
2222 * Returns the number of most recent block
2323 * eth_blockNumber
24+ * @return last block number
2425 */
2526 long blockNoLast ();
2627
2728 /**
2829 * Returns information about a block by block number
2930 * eth_getBlockByNumber
31+ * @param blockNo block number
32+ * @return block info
3033 */
3134 @ NotNull Optional <BlockProxy > block (long blockNo ) throws ApiException ;
3235
3336 /**
3437 * Returns information about a uncle by block number
3538 * eth_getUncleByBlockNumberAndIndex
39+ * @param blockNo block number
40+ * @param index uncle block index
41+ * @return block info
3642 */
3743 @ NotNull Optional <BlockProxy > blockUncle (long blockNo , long index ) throws ApiException ;
3844
3945 /**
4046 * Returns the information about a transaction requested by transaction hash
4147 * eth_getTransactionByHash
48+ * @param txhash tx hash
49+ * @return tx info
4250 */
4351 @ NotNull Optional <TxProxy > tx (String txhash ) throws ApiException ;
4452
4553 /**
4654 * Returns information about a transaction by block number and transaction index position
4755 * eth_getTransactionByBlockNumberAndIndex
56+ * @param blockNo block number
57+ * @param index tx index in block
58+ * @return tx info
4859 */
4960 @ NotNull Optional <TxProxy > tx (long blockNo , long index ) throws ApiException ;
5061
5162 /**
5263 * Returns the number of transactions in a block from a block matching the given block number
5364 * eth_getBlockTransactionCountByNumber
65+ * @param blockNo block number
66+ * @return tx count in block
5467 */
5568 int txCount (long blockNo ) throws ApiException ;
5669
5770 /**
5871 * Returns the number of transactions sent from an address
5972 * eth_getTransactionCount
73+ * @param address to look for
74+ * @return tx send count
6075 */
6176 int txSendCount (String address ) throws ApiException ;
6277
6378 /**
6479 * Creates new message call transaction or a contract creation for signed transactions
6580 * eth_sendRawTransaction
81+ * @param hexEncodedTx tx as hex
82+ * @return result (check eth grpc info)
6683 */
6784 @ NotNull Optional <String > txSendRaw (String hexEncodedTx ) throws ApiException ;
6885
6986 /**
7087 * Returns the receipt of a transaction by transaction hash
7188 * eth_getTransactionReceipt
89+ * @param txhash tx hash
90+ * @return receipt
7291 */
7392 @ NotNull Optional <ReceiptProxy > txReceipt (String txhash ) throws ApiException ;
7493
7594 /**
7695 * Executes a new message call immediately without creating a transaction on the block chain
7796 * eth_call
97+ * @param address to look for
98+ * @param data in tx for call
99+ * @return result (check eth grpc info)
78100 */
79101 @ NotNull Optional <String > call (String address , String data ) throws ApiException ;
80102
81103 /**
82104 * Returns code at a given address
83105 * eth_getCode
106+ * @param address to look for
107+ * @return result (check eth grpc info)
84108 */
85109 @ NotNull Optional <String > code (String address ) throws ApiException ;
86110
87111 /**
88112 * (**experimental)
89113 * Returns the value from a storage position at a given address
90114 * eth_getStorageAt
115+ * @param address to look for
116+ * @param position storage position
117+ * @return result (check eth grpc info)
91118 */
92119 @ NotNull Optional <String > storageAt (String address , long position ) throws ApiException ;
93120
94121 /**
95122 * Returns the current price per gas in wei
96123 * eth_gasPrice
124+ * @return price
97125 */
98126 @ NotNull BigInteger gasPrice () throws ApiException ;
99127
100128 /**
101129 * Makes a call or transaction, which won't be added to the blockchain and returns the used gas,
102130 * which can be used for estimating the used gas
103131 * eth_estimateGas
132+ * @return gas estimate
104133 */
105134 @ NotNull BigInteger gasEstimated () throws ApiException ;
106135 @ NotNull BigInteger gasEstimated (String hexData ) throws ApiException ;
0 commit comments