@@ -9,33 +9,33 @@ EtherscanApi
9
9
10
10
* [ EtherscanApi] ( #EtherscanApi )
11
11
* [ new EtherscanApi([ token] , [ networkName] )] ( #new_EtherscanApi_new )
12
- * [ .getAccountBalance(address, [ unit ] )] ( #EtherscanApi+getAccountBalance ) ⇒ <code >Promise.< ; string> ; </code >
13
- * [ .getAccountBalances(addresses, [ unit ] )] ( #EtherscanApi+getAccountBalances ) ⇒ <code >Promise.< ; object> ; </code >
14
- * [ .getTransactions(address, startBlock, endBlock, offset, page, sort )] ( #EtherscanApi+getTransactions ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
15
- * [ .getInternalTransactions(address, startBlock, endBlock, offset, page, sort )] ( #EtherscanApi+getInternalTransactions ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
12
+ * [ .getAccountBalance(address, [ options ] )] ( #EtherscanApi+getAccountBalance ) ⇒ <code >Promise.< ; string> ; </code >
13
+ * [ .getAccountBalances(addresses, [ options ] )] ( #EtherscanApi+getAccountBalances ) ⇒ <code >Promise.< ; object> ; </code >
14
+ * [ .getTransactions(address, [ options ] )] ( #EtherscanApi+getTransactions ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
15
+ * [ .getInternalTransactions(address, [ options ] )] ( #EtherscanApi+getInternalTransactions ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
16
16
* [ .getInternalTransactionsByHash(txhash)] ( #EtherscanApi+getInternalTransactionsByHash ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
17
- * [ .getMinedBlocks(address, type, offset, page )] ( #EtherscanApi+getMinedBlocks ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
17
+ * [ .getMinedBlocks(address, [ options ] )] ( #EtherscanApi+getMinedBlocks ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
18
18
* [ .getContractAbi(address)] ( #EtherscanApi+getContractAbi ) ⇒ <code >Promsie.< ; Array.< ; object> ;> ; </code >
19
19
* [ .getContractExecutionStatus(txhash)] ( #EtherscanApi+getContractExecutionStatus ) ⇒ <code >Promise.< ; object> ; </code >
20
20
* [ .getTransactionStatus(txhash)] ( #EtherscanApi+getTransactionStatus ) ⇒ <code >Promise.< ; object> ; </code >
21
21
* [ .getBlockReward(blockNumber)] ( #EtherscanApi+getBlockReward )
22
- * [ .getEventsLogs(address, fromBlock, toBlock, topic0, [ topic01operator ] , [ topic1 ] , [ topic12operator ] , [ topic2 ] , [ topic23operator ] , [ topic3 ] , [ topic02operator ] )] ( #EtherscanApi+getEventsLogs ) ⇒ <code >Promise.< ; object> ; </code >
22
+ * [ .getEventsLogs(address, options )] ( #EtherscanApi+getEventsLogs ) ⇒ <code >Promise.< ; object> ; </code >
23
23
* [ .getRecentBlockNumber()] ( #EtherscanApi+getRecentBlockNumber ) ⇒ <code >Promise.< ; number> ; </code >
24
24
* [ .getBlockByNumber(blockNumber)] ( #EtherscanApi+getBlockByNumber ) ⇒ <code >Promise.< ; object> ; </code >
25
25
* [ .getUncleByBlockNumberAndIndex(blockNumber, [ index] )] ( #EtherscanApi+getUncleByBlockNumberAndIndex ) ⇒ <code >Promise.< ; object> ; </code >
26
26
* [ .getBlockTransactionCount(blockNumber)] ( #EtherscanApi+getBlockTransactionCount ) ⇒ <code >Promise.< ; number> ; </code >
27
27
* [ .getTransactionByHash(txhash)] ( #EtherscanApi+getTransactionByHash ) ⇒ <code >Promise.< ; object> ; </code >
28
28
* [ .getTransactionByBlockNumberAndIndex(blockNumber, [ index] )] ( #EtherscanApi+getTransactionByBlockNumberAndIndex ) ⇒ <code >Promise.< ; object> ; </code >
29
- * [ .getTransactionCount(address)] ( #EtherscanApi+getTransactionCount ) ⇒ <code >Promise.< ; number> ; </code >
29
+ * [ .getTransactionCount(address, [ options ] )] ( #EtherscanApi+getTransactionCount ) ⇒ <code >Promise.< ; number> ; </code >
30
30
* [ .sendRawTransaction(hex)] ( #EtherscanApi+sendRawTransaction ) ⇒ <code >Promise.< ; void> ; </code >
31
31
* [ .getTransactionReceipt(txhash)] ( #EtherscanApi+getTransactionReceipt ) ⇒ <code >Promise.< ; object> ; </code >
32
- * [ .call(to, data)] ( #EtherscanApi+call ) ⇒ <code >Promise.< ; string> ; </code >
33
- * [ .getCode(address)] ( #EtherscanApi+getCode ) ⇒ <code >Promise.< ; string> ; </code >
34
- * [ .getStorageAt(address, position)] ( #EtherscanApi+getStorageAt ) ⇒ <code >Promise.< ; string> ; </code >
35
- * [ .getGasPrice([ unit ] )] ( #EtherscanApi+getGasPrice ) ⇒ <code >Promise.< ; string> ; </code >
36
- * [ .estimateGas(to, value, gasPrice, gas )] ( #EtherscanApi+estimateGas ) ⇒ <code >Promise.< ; void> ; </code >
32
+ * [ .call(to, data, [ options ] )] ( #EtherscanApi+call ) ⇒ <code >Promise.< ; string> ; </code >
33
+ * [ .getCode(address, [ options ] )] ( #EtherscanApi+getCode ) ⇒ <code >Promise.< ; string> ; </code >
34
+ * [ .getStorageAt(address, position, options )] ( #EtherscanApi+getStorageAt ) ⇒ <code >Promise.< ; string> ; </code >
35
+ * [ .getGasPrice([ options ] )] ( #EtherscanApi+getGasPrice ) ⇒ <code >Promise.< ; string> ; </code >
36
+ * [ .estimateGas(toAddress, options )] ( #EtherscanApi+estimateGas ) ⇒ <code >Promise.< ; void> ; </code >
37
37
* [ .getTokenByContractAddress(contractAddress)] ( #EtherscanApi+getTokenByContractAddress ) ⇒ <code >Promise.< ; string> ; </code >
38
- * [ .getTokenBalanceByContractAddress(contractAddress)] ( #EtherscanApi+getTokenBalanceByContractAddress ) ⇒ <code >Promise.< ; string> ; </code >
38
+ * [ .getTokenBalanceByContractAddress(contractAddress, address, [ options ] )] ( #EtherscanApi+getTokenBalanceByContractAddress ) ⇒ <code >Promise.< ; string> ; </code >
39
39
* [ .getTotalEtherSupply()] ( #EtherscanApi+getTotalEtherSupply ) ⇒ <code >Promise.< ; string> ; </code >
40
40
* [ .getEtherLastPrice()] ( #EtherscanApi+getEtherLastPrice ) ⇒ <code >Promise.< ; object> ; </code >
41
41
@@ -50,62 +50,76 @@ EtherscanApi
50
50
51
51
<a name =" EtherscanApi+getAccountBalance " ></a >
52
52
53
- ### etherscanApi.getAccountBalance(address, [ unit ] ) ⇒ <code >Promise.< ; string> ; </code >
53
+ ### etherscanApi.getAccountBalance(address, [ options ] ) ⇒ <code >Promise.< ; string> ; </code >
54
54
Returns Ether balance for a single address
55
55
56
56
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
57
+ ** Todo**
58
+
59
+ - [ ] Write test for options
60
+
57
61
58
62
| Param | Type | Default | Description |
59
63
| --- | --- | --- | --- |
60
64
| address | <code >string</code > | | Address |
61
- | [ unit] | <code >string</code > | <code >" ; wei" ; </code > | Balance unit |
65
+ | [ options] | <code >object</code > | | |
66
+ | [ options.unit] | <code >string</code > | <code >" ; wei" ; </code > | Balance unit |
67
+ | [ options.tag] | <code >string</code > | <code >" ; latest" ; </code > | |
62
68
63
69
<a name =" EtherscanApi+getAccountBalances " ></a >
64
70
65
- ### etherscanApi.getAccountBalances(addresses, [ unit ] ) ⇒ <code >Promise.< ; object> ; </code >
71
+ ### etherscanApi.getAccountBalances(addresses, [ options ] ) ⇒ <code >Promise.< ; object> ; </code >
66
72
Returns Ether balance for multiple addresses in a single call.
67
73
Up to a maximum of 20 accounts in a single batch.
68
74
69
75
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
76
+ ** Todo**
77
+
78
+ - [ ] Write test for options
79
+
70
80
71
81
| Param | Type | Default | Description |
72
82
| --- | --- | --- | --- |
73
83
| addresses | <code >Array.< ; string> ; </code > | | List of addresses |
74
- | [ unit] | <code >string</code > | <code >" ; wei" ; </code > | Balance unit |
84
+ | [ options] | <code >object</code > | | |
85
+ | [ options.unit] | <code >string</code > | <code >" ; wei" ; </code > | Balance unit |
86
+ | [ options.tag] | <code >string</code > | <code >" ; latest" ; </code > | |
75
87
76
88
<a name =" EtherscanApi+getTransactions " ></a >
77
89
78
- ### etherscanApi.getTransactions(address, startBlock, endBlock, offset, page, sort ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
79
- Get a list of 'Normal' transactions by address
80
- Returns up to a maximum of the last 10000 transactions only
90
+ ### etherscanApi.getTransactions(address, [ options ] ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
91
+ Returns a list of 'Normal' transactions by address.
92
+ Returns up to a maximum of the last 10000 transactions only.
81
93
82
94
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
83
95
84
96
| Param | Type | Description |
85
97
| --- | --- | --- |
86
98
| address | <code >string</code > | Contract address |
87
- | startBlock | <code >string</code > \| <code >number</code > | Starting block number to retrieve results |
88
- | endBlock | <code >string</code > \| <code >number</code > | Ending block number to retrieve results |
89
- | offset | <code >number</code > | Max records to return |
90
- | page | <code >number</code > | Page number |
91
- | sort | <code >" ; asc" ; </code > \| <code >" ; desc" ; </code > | Sort type |
99
+ | [ options] | <code >object</code > | |
100
+ | [ options.startBlock] | <code >object</code > | Starting block number to retrieve results |
101
+ | [ options.endBlock] | <code >string</code > \| <code >number</code > | Ending block number to retrieve results |
102
+ | [ options.offset] | <code >number</code > | Max records to return |
103
+ | [ options.page] | <code >number</code > | Page number |
104
+ | [ options.sort] | <code >" ; asc" ; </code > \| <code >" ; desc" ; </code > | Sort type |
92
105
93
106
<a name =" EtherscanApi+getInternalTransactions " ></a >
94
107
95
- ### etherscanApi.getInternalTransactions(address, startBlock, endBlock, offset, page, sort ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
96
- Returns a list of 'Internal' Transactions by Address
97
- Returns up to a maximum of the last 10000 transactions only
108
+ ### etherscanApi.getInternalTransactions(address, [ options ] ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
109
+ Returns a list of 'Internal' Transactions by Address.
110
+ Returns up to a maximum of the last 10000 transactions only.
98
111
99
112
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
100
113
101
114
| Param | Type | Description |
102
115
| --- | --- | --- |
103
116
| address | <code >string</code > | Contract address |
104
- | startBlock | <code >string</code > \| <code >number</code > | Starting block number to retrieve results |
105
- | endBlock | <code >string</code > \| <code >number</code > | Ending block number to retrieve results |
106
- | offset | <code >string</code > \| <code >number</code > | Max records to return |
107
- | page | <code >string</code > \| <code >number</code > | Page number |
108
- | sort | <code >" ; asc" ; </code > \| <code >" ; desc" ; </code > | Sort type |
117
+ | [ options] | <code >object</code > | |
118
+ | [ options.startBlock] | <code >string</code > \| <code >number</code > | Starting block number to retrieve results |
119
+ | [ options.endBlock] | <code >string</code > \| <code >number</code > | Ending block number to retrieve results |
120
+ | [ options.offset] | <code >string</code > \| <code >number</code > | Max records to return |
121
+ | [ options.page] | <code >string</code > \| <code >number</code > | Page number |
122
+ | [ options.sort] | <code >" ; asc" ; </code > \| <code >" ; desc" ; </code > | Sort type |
109
123
110
124
<a name =" EtherscanApi+getInternalTransactionsByHash " ></a >
111
125
@@ -120,17 +134,18 @@ Returns a list of 'Internal' Transactions by Address
120
134
121
135
<a name =" EtherscanApi+getMinedBlocks " ></a >
122
136
123
- ### etherscanApi.getMinedBlocks(address, type, offset, page ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
137
+ ### etherscanApi.getMinedBlocks(address, [ options ] ) ⇒ <code >Promise.< ; Array.< ; object> ;> ; </code >
124
138
List of blocks mined by address
125
139
126
140
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
127
141
128
- | Param | Type | Default | Description |
129
- | --- | --- | --- | --- |
130
- | address | <code >string</code > | | Miner address |
131
- | type | <code >" ; blocks" ; </code > \| <code >" ; uncles" ; </code > | <code >blocks</code > | Type of block: blocks (full blocks only) or uncles (uncle blocks only) |
132
- | offset | <code >number</code > | | Max records to return |
133
- | page | <code >number</code > | | Page number |
142
+ | Param | Type | Description |
143
+ | --- | --- | --- |
144
+ | address | <code >string</code > | Miner address |
145
+ | [ options] | <code >object</code > | |
146
+ | [ options.type] | <code >" ; blocks" ; </code > \| <code >" ; uncles" ; </code > | Type of block: blocks (full blocks only) or uncles (uncle blocks only) |
147
+ | [ options.offset] | <code >number</code > | Max records to return |
148
+ | [ options.page] | <code >number</code > | Page number |
134
149
135
150
<a name =" EtherscanApi+getContractAbi " ></a >
136
151
@@ -182,28 +197,29 @@ Get block and uncle rewards by block number
182
197
183
198
<a name =" EtherscanApi+getEventsLogs " ></a >
184
199
185
- ### etherscanApi.getEventsLogs(address, fromBlock, toBlock, topic0, [ topic01operator ] , [ topic1 ] , [ topic12operator ] , [ topic2 ] , [ topic23operator ] , [ topic3 ] , [ topic02operator ] ) ⇒ <code >Promise.< ; object> ; </code >
200
+ ### etherscanApi.getEventsLogs(address, options ) ⇒ <code >Promise.< ; object> ; </code >
186
201
Returns events logs.
187
202
The Event Log API was designed to provide an alternative to the native
188
- eth_getLogs. Topic Operator (opr) choices are either 'and' or 'or' and
189
- are restricted to the above choices only. For performance and security
203
+ eth_getLogs. Topic Operator choices are either 'and' or 'or' and are
204
+ restricted to the above choices only. For performance and security
190
205
considerations, only the first 1000 results are return.
191
206
192
207
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
193
208
194
209
| Param | Type | Description |
195
210
| --- | --- | --- |
196
211
| address | <code >string</code > | |
197
- | fromBlock | <code >number</code > | Start block number (integer, NOT hex) |
198
- | toBlock | <code >number</code > \| <code >' ; latest' ; </code > | End block number or "latest" (earliest and pending is NOT supported yet) |
199
- | topic0 | <code >string</code > | Topic 0 |
200
- | [ topic01operator] | <code >" ; and" ; </code > \| <code >" ; or" ; </code > | Operator between topic0 & topic1 |
201
- | [ topic1] | <code >string</code > | Topic 1 |
202
- | [ topic12operator] | <code >" ; and" ; </code > \| <code >" ; or" ; </code > | Operator between topic1 & topic2 |
203
- | [ topic2] | <code >string</code > | Topic 2 |
204
- | [ topic23operator] | <code >" ; and" ; </code > \| <code >" ; or" ; </code > | Operator between topic2 & topic3 |
205
- | [ topic3] | <code >string</code > | Topic 3 |
206
- | [ topic02operator] | <code >" ; and" ; </code > \| <code >" ; or" ; </code > | Operator between topic0 & topic2 |
212
+ | options | <code >object</code > | |
213
+ | options.fromBlock | <code >number</code > | Start block number (integer, NOT hex) |
214
+ | options.toBlock | <code >number</code > \| <code >' ; latest' ; </code > | End block number or "latest" (earliest and pending is NOT supported yet) |
215
+ | options.topic0 | <code >string</code > | Topic 0 |
216
+ | [ options.topic01operator] | <code >" ; and" ; </code > \| <code >" ; or" ; </code > | Operator between topic0 & topic1 |
217
+ | [ options.topic1] | <code >string</code > | Topic 1 |
218
+ | [ options.topic12operator] | <code >" ; and" ; </code > \| <code >" ; or" ; </code > | Operator between topic1 & topic2 |
219
+ | [ options.topic2] | <code >string</code > | Topic 2 |
220
+ | [ options.topic23operator] | <code >" ; and" ; </code > \| <code >" ; or" ; </code > | Operator between topic2 & topic3 |
221
+ | [ options.topic3] | <code >string</code > | Topic 3 |
222
+ | [ options.topic02operator] | <code >" ; and" ; </code > \| <code >" ; or" ; </code > | Operator between topic0 & topic2 |
207
223
208
224
<a name =" EtherscanApi+getRecentBlockNumber " ></a >
209
225
@@ -272,14 +288,16 @@ index position
272
288
273
289
<a name =" EtherscanApi+getTransactionCount " ></a >
274
290
275
- ### etherscanApi.getTransactionCount(address) ⇒ <code >Promise.< ; number> ; </code >
291
+ ### etherscanApi.getTransactionCount(address, [ options ] ) ⇒ <code >Promise.< ; number> ; </code >
276
292
Returns the number of transactions sent from an address
277
293
278
294
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
279
295
280
- | Param | Type | Description |
281
- | --- | --- | --- |
282
- | address | <code >string</code > | Transaction address |
296
+ | Param | Type | Default | Description |
297
+ | --- | --- | --- | --- |
298
+ | address | <code >string</code > | | Transaction address |
299
+ | [ options] | <code >object</code > | | |
300
+ | [ options.tag] | <code >string</code > | <code >" ; latest" ; </code > | |
283
301
284
302
<a name =" EtherscanApi+sendRawTransaction " ></a >
285
303
@@ -306,65 +324,73 @@ Returns the receipt of a transaction by transaction hash
306
324
307
325
<a name =" EtherscanApi+call " ></a >
308
326
309
- ### etherscanApi.call(to, data) ⇒ <code >Promise.< ; string> ; </code >
327
+ ### etherscanApi.call(to, data, [ options ] ) ⇒ <code >Promise.< ; string> ; </code >
310
328
Executes a new message call immediately without creating a transaction on
311
329
the block chain
312
330
313
331
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
314
332
315
- | Param | Type | Description |
316
- | --- | --- | --- |
317
- | to | <code >string</code > | Address to execute from |
318
- | data | <code >string</code > | Data to transfer |
333
+ | Param | Type | Default | Description |
334
+ | --- | --- | --- | --- |
335
+ | to | <code >string</code > | | Address to execute from |
336
+ | data | <code >string</code > | | Data to transfer |
337
+ | [ options] | <code >object</code > | | |
338
+ | [ options.tag] | <code >string</code > | <code >" ; latest" ; </code > | |
319
339
320
340
<a name =" EtherscanApi+getCode " ></a >
321
341
322
- ### etherscanApi.getCode(address) ⇒ <code >Promise.< ; string> ; </code >
342
+ ### etherscanApi.getCode(address, [ options ] ) ⇒ <code >Promise.< ; string> ; </code >
323
343
Returns code at a given address
324
344
325
345
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
326
346
327
- | Param | Type |
328
- | --- | --- |
329
- | address | <code >string</code > |
347
+ | Param | Type | Default |
348
+ | --- | --- | --- |
349
+ | address | <code >string</code > | |
350
+ | [ options] | <code >object</code > | |
351
+ | [ options.tag] | <code >string</code > | <code >" ; latest" ; </code > |
330
352
331
353
<a name =" EtherscanApi+getStorageAt " ></a >
332
354
333
- ### etherscanApi.getStorageAt(address, position) ⇒ <code >Promise.< ; string> ; </code >
355
+ ### etherscanApi.getStorageAt(address, position, options ) ⇒ <code >Promise.< ; string> ; </code >
334
356
Returns the value from a storage position at a given address.
335
357
336
358
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
337
359
338
- | Param | Type |
339
- | --- | --- |
340
- | address | <code >string</code > |
341
- | position | <code >number</code > |
360
+ | Param | Type | Default |
361
+ | --- | --- | --- |
362
+ | address | <code >string</code > | |
363
+ | position | <code >number</code > | |
364
+ | options | <code >object</code > | |
365
+ | [ options.tag] | <code >string</code > | <code >" ; latest" ; </code > |
342
366
343
367
<a name =" EtherscanApi+getGasPrice " ></a >
344
368
345
- ### etherscanApi.getGasPrice([ unit ] ) ⇒ <code >Promise.< ; string> ; </code >
369
+ ### etherscanApi.getGasPrice([ options ] ) ⇒ <code >Promise.< ; string> ; </code >
346
370
Returns the current price per gas (in wei by default)
347
371
348
372
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
349
373
350
374
| Param | Type | Default | Description |
351
375
| --- | --- | --- | --- |
352
- | [ unit] | <code >string</code > | <code >" ; wei" ; </code > | Unit of gas |
376
+ | [ options] | <code >object</code > | | |
377
+ | [ options.unit] | <code >string</code > | <code >" ; wei" ; </code > | Unit of gas |
353
378
354
379
<a name =" EtherscanApi+estimateGas " ></a >
355
380
356
- ### etherscanApi.estimateGas(to, value, gasPrice, gas ) ⇒ <code >Promise.< ; void> ; </code >
381
+ ### etherscanApi.estimateGas(toAddress, options ) ⇒ <code >Promise.< ; void> ; </code >
357
382
Makes a call or transaction, which won't be added to the blockchain and
358
383
returns the used gas, which can be used for estimating the used gas
359
384
360
385
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
361
386
362
387
| Param | Type | Description |
363
388
| --- | --- | --- |
364
- | to | <code >string</code > | Address to get code from |
365
- | value | <code >string</code > | Storage position |
366
- | gasPrice | <code >string</code > | Gas price in wei |
367
- | gas | <code >string</code > | |
389
+ | toAddress | <code >string</code > | Address to get code from |
390
+ | options | <code >object</code > | |
391
+ | options.value | <code >string</code > | Storage position |
392
+ | options.gasPrice | <code >string</code > | Gas price in wei |
393
+ | options.gas | <code >string</code > | |
368
394
369
395
<a name =" EtherscanApi+getTokenByContractAddress " ></a >
370
396
@@ -379,14 +405,17 @@ Returns ERC20-Token total supply by contract address
379
405
380
406
<a name =" EtherscanApi+getTokenBalanceByContractAddress " ></a >
381
407
382
- ### etherscanApi.getTokenBalanceByContractAddress(contractAddress) ⇒ <code >Promise.< ; string> ; </code >
408
+ ### etherscanApi.getTokenBalanceByContractAddress(contractAddress, address, [ options ] ) ⇒ <code >Promise.< ; string> ; </code >
383
409
Returns ERC20-Token account balance by token's contract address
384
410
385
411
** Kind** : instance method of [ <code >EtherscanApi</code >] ( #EtherscanApi )
386
412
387
- | Param | Type |
388
- | --- | --- |
389
- | contractAddress | <code >string</code > |
413
+ | Param | Type | Default |
414
+ | --- | --- | --- |
415
+ | contractAddress | <code >string</code > | |
416
+ | address | <code >string</code > | |
417
+ | [ options] | <code >object</code > | |
418
+ | [ options.tag] | <code >object</code > | <code >latest</code > |
390
419
391
420
<a name =" EtherscanApi+getTotalEtherSupply " ></a >
392
421
0 commit comments