@@ -138,6 +138,7 @@ <h1 class="page-title">Source: init.js</h1>
138
138
proxy: {
139
139
/**
140
140
* Returns the number of most recent block
141
+ * @returns {Promise.<integer> }
141
142
*/
142
143
eth_blockNumber() {
143
144
const module = 'proxy';
@@ -149,6 +150,8 @@ <h1 class="page-title">Source: init.js</h1>
149
150
},
150
151
/**
151
152
* Returns information about a block by block number.
153
+ * @param {string} tag - Tag to look up
154
+ * @returns {Promise.<integer> }
152
155
*/
153
156
eth_getBlockByNumber(tag) {
154
157
const module = 'proxy';
@@ -161,6 +164,9 @@ <h1 class="page-title">Source: init.js</h1>
161
164
},
162
165
/**
163
166
* Returns information about a uncle by block number.
167
+ * @param {string} tag - Tag to look up
168
+ * @param {string} index - Index
169
+ * @returns {Promise.<object> }
164
170
*/
165
171
eth_getUncleByBlockNumberAndIndex(tag, index) {
166
172
const module = 'proxy';
@@ -172,6 +178,8 @@ <h1 class="page-title">Source: init.js</h1>
172
178
},
173
179
/**
174
180
* Returns the number of transactions in a block from a block matching the given block number
181
+ * @param {string} tag - Tag to look up
182
+ * @returns {Promise.<object> }
175
183
*/
176
184
eth_getBlockTransactionCountByNumber(tag) {
177
185
const module = 'proxy';
@@ -183,6 +191,8 @@ <h1 class="page-title">Source: init.js</h1>
183
191
},
184
192
/**
185
193
* Returns the information about a transaction requested by transaction hash
194
+ * @param {string} hash - Transaction hash
195
+ * @returns {Promise.<object> }
186
196
*/
187
197
eth_getTransactionByHash(hash) {
188
198
const module = 'proxy';
@@ -194,6 +204,9 @@ <h1 class="page-title">Source: init.js</h1>
194
204
},
195
205
/**
196
206
* Returns information about a transaction by block number and transaction index position
207
+ * @param {string} tag - Tag to look up
208
+ * @param {string} index - Index
209
+ * @returns {Promise.<object> }
197
210
*/
198
211
eth_getTransactionByBlockNumberAndIndex(tag, index) {
199
212
const module = 'proxy';
@@ -205,6 +218,8 @@ <h1 class="page-title">Source: init.js</h1>
205
218
},
206
219
/**
207
220
* Returns the number of transactions sent from an address
221
+ * @param {string} address - Address of the transaction
222
+ * @returns {Promise.<object> }
208
223
*/
209
224
eth_getTransactionCount(address) {
210
225
const module = 'proxy';
@@ -216,6 +231,8 @@ <h1 class="page-title">Source: init.js</h1>
216
231
},
217
232
/**
218
233
* Creates new message call transaction or a contract creation for signed transactions
234
+ * @param {string} hex - Serialized Message
235
+ * @returns {Promise.<object> }
219
236
*/
220
237
eth_sendRawTransaction(hex) {
221
238
const module = 'proxy';
@@ -227,6 +244,8 @@ <h1 class="page-title">Source: init.js</h1>
227
244
},
228
245
/**
229
246
* Returns the receipt of a transaction by transaction hash
247
+ * @param {string} txhash - Transaction hash
248
+ * @returns {Promise.<object> }
230
249
*/
231
250
eth_getTransactionReceipt(txhash) {
232
251
const module = 'proxy';
@@ -238,6 +257,9 @@ <h1 class="page-title">Source: init.js</h1>
238
257
},
239
258
/**
240
259
* Executes a new message call immediately without creating a transaction on the block chain
260
+ * @param {string} to - Address to execute from
261
+ * @param {string} tag - Content
262
+ * @returns {Promise.<object> }
241
263
*/
242
264
eth_call(to, tag) {
243
265
const module = 'proxy';
@@ -249,6 +271,9 @@ <h1 class="page-title">Source: init.js</h1>
249
271
},
250
272
/**
251
273
* Returns code at a given address
274
+ * @param {string} address - Address to get code from
275
+ * @param {string} tag - ??
276
+ * @returns {Promise.<object> }
252
277
*/
253
278
eth_getCode(address, tag) {
254
279
const module = 'proxy';
@@ -260,6 +285,10 @@ <h1 class="page-title">Source: init.js</h1>
260
285
},
261
286
/**
262
287
* Returns the value from a storage position at a given address.
288
+ * @param {string} address - Address to get code from
289
+ * @param {string} position - Storage position
290
+ * @param {string} tag - ??
291
+ * @returns {Promise.<object> }
263
292
*/
264
293
eth_getStorageAt(address, position, tag) {
265
294
const module = 'proxy';
@@ -271,6 +300,7 @@ <h1 class="page-title">Source: init.js</h1>
271
300
},
272
301
/**
273
302
* Returns the current price per gas in wei.
303
+ * @returns {Promise.<object> }
274
304
*/
275
305
eth_gasPrice() {
276
306
const module = 'proxy';
@@ -282,6 +312,11 @@ <h1 class="page-title">Source: init.js</h1>
282
312
},
283
313
/**
284
314
* Makes a call or transaction, which won't be added to the blockchain and returns the used gas, which can be used for estimating the used gas
315
+ * @param {string} to - Address to get code from
316
+ * @param {string} value - Storage position
317
+ * @param {string} gasPrice - ??
318
+ * @param {string} gas - ??
319
+ * @returns {Promise.<object> }
285
320
*/
286
321
eth_estimateGas(to, value, gasPrice, gas) {
287
322
const module = 'proxy';
@@ -298,6 +333,9 @@ <h1 class="page-title">Source: init.js</h1>
298
333
stats: {
299
334
/**
300
335
* Returns the supply of Tokens
336
+ * @param {string} tokenname - Name of the Token
337
+ * @param {string} contractaddress - Address from token contract
338
+ * @returns {Promise.<object> }
301
339
*/
302
340
tokensupply(tokenname, contractaddress) {
303
341
const module = 'stats';
@@ -318,8 +356,10 @@ <h1 class="page-title">Source: init.js</h1>
318
356
var query = querystring.stringify(params);
319
357
return getRequest(query);
320
358
},
359
+
321
360
/**
322
361
* Returns total supply of ether
362
+ * @returns {Promise.<integer> }
323
363
*/
324
364
ethsupply() {
325
365
const module = 'stats';
@@ -330,8 +370,9 @@ <h1 class="page-title">Source: init.js</h1>
330
370
return getRequest(query);
331
371
},
332
372
333
- /*
334
- * Returns tthe price of ether now
373
+ /**
374
+ * Returns the price of ether now
375
+ * @returns {Promise.<integer> }
335
376
*/
336
377
ethprice() {
337
378
const module = 'stats';
@@ -348,6 +389,9 @@ <h1 class="page-title">Source: init.js</h1>
348
389
block: {
349
390
/**
350
391
* Find the block reward for a given address and block
392
+ * @param {string} address - Address of the block
393
+ * @param {string} blockno - Block number
394
+ * @returns {Promise.<object> }
351
395
*/
352
396
getblockreward(address, blockno) {
353
397
const module = 'block';
@@ -367,6 +411,8 @@ <h1 class="page-title">Source: init.js</h1>
367
411
transaction: {
368
412
/**
369
413
* returns the status of a specific transaction hash
414
+ * @param {string} txhash - Transaction hash
415
+ * @returns {Promise.<object> }
370
416
*/
371
417
getstatus(txhash) {
372
418
const module = 'transaction';
@@ -383,6 +429,8 @@ <h1 class="page-title">Source: init.js</h1>
383
429
contract: {
384
430
/**
385
431
* Returns the ABI/Interface of a given contract
432
+ * @param {string} address - Contract address
433
+ * @returns {Promise.<object> }
386
434
*/
387
435
getabi(address) {
388
436
const module = 'contract';
@@ -400,7 +448,11 @@ <h1 class="page-title">Source: init.js</h1>
400
448
*/
401
449
account: {
402
450
/**
403
- * Returns the amount of Tokens a specific account owns
451
+ * Returns the amount of Tokens a specific account owns.
452
+ * @param {string} address - Contract address
453
+ * @param {string} tokenname - Name of the token
454
+ * @param {string} contractaddress - Contract address
455
+ * @returns {Promise.<object> }
404
456
*/
405
457
tokenbalance(address, tokenname, contractaddress){
406
458
@@ -429,6 +481,8 @@ <h1 class="page-title">Source: init.js</h1>
429
481
},
430
482
/**
431
483
* Returns the balance of a sepcific account
484
+ * @param {string} address - Address
485
+ * @returns {Promise.<object> }
432
486
*/
433
487
balance(address) {
434
488
const module = 'account';
@@ -447,6 +501,8 @@ <h1 class="page-title">Source: init.js</h1>
447
501
},
448
502
/**
449
503
* Get a list of internal transactions
504
+ * @param {string} txhash - Transaction hash
505
+ * @returns {Promise.<object> }
450
506
*/
451
507
txlistinternal(txhash) {
452
508
const module = 'account';
@@ -460,6 +516,11 @@ <h1 class="page-title">Source: init.js</h1>
460
516
},
461
517
/**
462
518
* Get a list of transactions for a specfic address
519
+ * @param {string} address - Transaction address
520
+ * @param {string} startblock - start looking here
521
+ * @param {string} endblock - end looking there
522
+ * @param {string} sort - Sort asc/desc
523
+ * @returns {Promise.<object> }
463
524
*/
464
525
txlist(address, startblock, endblock, sort) {
465
526
const module = 'account';
@@ -485,6 +546,7 @@ <h1 class="page-title">Source: init.js</h1>
485
546
},
486
547
/**
487
548
* Get a list of blocks that a specific account has mineds
549
+ * @param {string} address - Transaction hash
488
550
*/
489
551
getminedblocks(address) {
490
552
const module = 'account';
@@ -513,7 +575,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-et
513
575
< br class ="clear ">
514
576
515
577
< footer >
516
- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.4.2</ a > on Mon Oct 10 2016 16:25:34 GMT+0200 (CEST)
578
+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.4.2</ a > on Mon Oct 10 2016 21:44:43 GMT+0200 (CEST)
517
579
</ footer >
518
580
519
581
< script > prettyPrint ( ) ; </ script >
0 commit comments