Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cf624cc

Browse filesBrowse files
committed
Update API reference for new parameters logic
1 parent e6a6948 commit cf624cc
Copy full SHA for cf624cc

File tree

Expand file treeCollapse file tree

2 files changed

+112
-83
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+112
-83
lines changed

‎docs/API.md

Copy file name to clipboardExpand all lines: docs/API.md
+111-82Lines changed: 111 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,33 @@ EtherscanApi
99

1010
* [EtherscanApi](#EtherscanApi)
1111
* [new EtherscanApi([token], [networkName])](#new_EtherscanApi_new)
12-
* [.getAccountBalance(address, [unit])](#EtherscanApi+getAccountBalance) ⇒ <code>Promise.&lt;string&gt;</code>
13-
* [.getAccountBalances(addresses, [unit])](#EtherscanApi+getAccountBalances) ⇒ <code>Promise.&lt;object&gt;</code>
14-
* [.getTransactions(address, startBlock, endBlock, offset, page, sort)](#EtherscanApi+getTransactions) ⇒ <code>Promise.&lt;Array.&lt;object&gt;&gt;</code>
15-
* [.getInternalTransactions(address, startBlock, endBlock, offset, page, sort)](#EtherscanApi+getInternalTransactions) ⇒ <code>Promise.&lt;Array.&lt;object&gt;&gt;</code>
12+
* [.getAccountBalance(address, [options])](#EtherscanApi+getAccountBalance) ⇒ <code>Promise.&lt;string&gt;</code>
13+
* [.getAccountBalances(addresses, [options])](#EtherscanApi+getAccountBalances) ⇒ <code>Promise.&lt;object&gt;</code>
14+
* [.getTransactions(address, [options])](#EtherscanApi+getTransactions) ⇒ <code>Promise.&lt;Array.&lt;object&gt;&gt;</code>
15+
* [.getInternalTransactions(address, [options])](#EtherscanApi+getInternalTransactions) ⇒ <code>Promise.&lt;Array.&lt;object&gt;&gt;</code>
1616
* [.getInternalTransactionsByHash(txhash)](#EtherscanApi+getInternalTransactionsByHash) ⇒ <code>Promise.&lt;Array.&lt;object&gt;&gt;</code>
17-
* [.getMinedBlocks(address, type, offset, page)](#EtherscanApi+getMinedBlocks) ⇒ <code>Promise.&lt;Array.&lt;object&gt;&gt;</code>
17+
* [.getMinedBlocks(address, [options])](#EtherscanApi+getMinedBlocks) ⇒ <code>Promise.&lt;Array.&lt;object&gt;&gt;</code>
1818
* [.getContractAbi(address)](#EtherscanApi+getContractAbi) ⇒ <code>Promsie.&lt;Array.&lt;object&gt;&gt;</code>
1919
* [.getContractExecutionStatus(txhash)](#EtherscanApi+getContractExecutionStatus) ⇒ <code>Promise.&lt;object&gt;</code>
2020
* [.getTransactionStatus(txhash)](#EtherscanApi+getTransactionStatus) ⇒ <code>Promise.&lt;object&gt;</code>
2121
* [.getBlockReward(blockNumber)](#EtherscanApi+getBlockReward)
22-
* [.getEventsLogs(address, fromBlock, toBlock, topic0, [topic01operator], [topic1], [topic12operator], [topic2], [topic23operator], [topic3], [topic02operator])](#EtherscanApi+getEventsLogs) ⇒ <code>Promise.&lt;object&gt;</code>
22+
* [.getEventsLogs(address, options)](#EtherscanApi+getEventsLogs) ⇒ <code>Promise.&lt;object&gt;</code>
2323
* [.getRecentBlockNumber()](#EtherscanApi+getRecentBlockNumber) ⇒ <code>Promise.&lt;number&gt;</code>
2424
* [.getBlockByNumber(blockNumber)](#EtherscanApi+getBlockByNumber) ⇒ <code>Promise.&lt;object&gt;</code>
2525
* [.getUncleByBlockNumberAndIndex(blockNumber, [index])](#EtherscanApi+getUncleByBlockNumberAndIndex) ⇒ <code>Promise.&lt;object&gt;</code>
2626
* [.getBlockTransactionCount(blockNumber)](#EtherscanApi+getBlockTransactionCount) ⇒ <code>Promise.&lt;number&gt;</code>
2727
* [.getTransactionByHash(txhash)](#EtherscanApi+getTransactionByHash) ⇒ <code>Promise.&lt;object&gt;</code>
2828
* [.getTransactionByBlockNumberAndIndex(blockNumber, [index])](#EtherscanApi+getTransactionByBlockNumberAndIndex) ⇒ <code>Promise.&lt;object&gt;</code>
29-
* [.getTransactionCount(address)](#EtherscanApi+getTransactionCount) ⇒ <code>Promise.&lt;number&gt;</code>
29+
* [.getTransactionCount(address, [options])](#EtherscanApi+getTransactionCount) ⇒ <code>Promise.&lt;number&gt;</code>
3030
* [.sendRawTransaction(hex)](#EtherscanApi+sendRawTransaction) ⇒ <code>Promise.&lt;void&gt;</code>
3131
* [.getTransactionReceipt(txhash)](#EtherscanApi+getTransactionReceipt) ⇒ <code>Promise.&lt;object&gt;</code>
32-
* [.call(to, data)](#EtherscanApi+call) ⇒ <code>Promise.&lt;string&gt;</code>
33-
* [.getCode(address)](#EtherscanApi+getCode) ⇒ <code>Promise.&lt;string&gt;</code>
34-
* [.getStorageAt(address, position)](#EtherscanApi+getStorageAt) ⇒ <code>Promise.&lt;string&gt;</code>
35-
* [.getGasPrice([unit])](#EtherscanApi+getGasPrice) ⇒ <code>Promise.&lt;string&gt;</code>
36-
* [.estimateGas(to, value, gasPrice, gas)](#EtherscanApi+estimateGas) ⇒ <code>Promise.&lt;void&gt;</code>
32+
* [.call(to, data, [options])](#EtherscanApi+call) ⇒ <code>Promise.&lt;string&gt;</code>
33+
* [.getCode(address, [options])](#EtherscanApi+getCode) ⇒ <code>Promise.&lt;string&gt;</code>
34+
* [.getStorageAt(address, position, options)](#EtherscanApi+getStorageAt) ⇒ <code>Promise.&lt;string&gt;</code>
35+
* [.getGasPrice([options])](#EtherscanApi+getGasPrice) ⇒ <code>Promise.&lt;string&gt;</code>
36+
* [.estimateGas(toAddress, options)](#EtherscanApi+estimateGas) ⇒ <code>Promise.&lt;void&gt;</code>
3737
* [.getTokenByContractAddress(contractAddress)](#EtherscanApi+getTokenByContractAddress) ⇒ <code>Promise.&lt;string&gt;</code>
38-
* [.getTokenBalanceByContractAddress(contractAddress)](#EtherscanApi+getTokenBalanceByContractAddress) ⇒ <code>Promise.&lt;string&gt;</code>
38+
* [.getTokenBalanceByContractAddress(contractAddress, address, [options])](#EtherscanApi+getTokenBalanceByContractAddress) ⇒ <code>Promise.&lt;string&gt;</code>
3939
* [.getTotalEtherSupply()](#EtherscanApi+getTotalEtherSupply) ⇒ <code>Promise.&lt;string&gt;</code>
4040
* [.getEtherLastPrice()](#EtherscanApi+getEtherLastPrice) ⇒ <code>Promise.&lt;object&gt;</code>
4141

@@ -50,62 +50,76 @@ EtherscanApi
5050

5151
<a name="EtherscanApi+getAccountBalance"></a>
5252

53-
### etherscanApi.getAccountBalance(address, [unit]) ⇒ <code>Promise.&lt;string&gt;</code>
53+
### etherscanApi.getAccountBalance(address, [options]) ⇒ <code>Promise.&lt;string&gt;</code>
5454
Returns Ether balance for a single address
5555

5656
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
57+
**Todo**
58+
59+
- [ ] Write test for options
60+
5761

5862
| Param | Type | Default | Description |
5963
| --- | --- | --- | --- |
6064
| address | <code>string</code> | | Address |
61-
| [unit] | <code>string</code> | <code>&quot;wei&quot;</code> | Balance unit |
65+
| [options] | <code>object</code> | | |
66+
| [options.unit] | <code>string</code> | <code>&quot;wei&quot;</code> | Balance unit |
67+
| [options.tag] | <code>string</code> | <code>&quot;latest&quot;</code> | |
6268

6369
<a name="EtherscanApi+getAccountBalances"></a>
6470

65-
### etherscanApi.getAccountBalances(addresses, [unit]) ⇒ <code>Promise.&lt;object&gt;</code>
71+
### etherscanApi.getAccountBalances(addresses, [options]) ⇒ <code>Promise.&lt;object&gt;</code>
6672
Returns Ether balance for multiple addresses in a single call.
6773
Up to a maximum of 20 accounts in a single batch.
6874

6975
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
76+
**Todo**
77+
78+
- [ ] Write test for options
79+
7080

7181
| Param | Type | Default | Description |
7282
| --- | --- | --- | --- |
7383
| addresses | <code>Array.&lt;string&gt;</code> | | List of addresses |
74-
| [unit] | <code>string</code> | <code>&quot;wei&quot;</code> | Balance unit |
84+
| [options] | <code>object</code> | | |
85+
| [options.unit] | <code>string</code> | <code>&quot;wei&quot;</code> | Balance unit |
86+
| [options.tag] | <code>string</code> | <code>&quot;latest&quot;</code> | |
7587

7688
<a name="EtherscanApi+getTransactions"></a>
7789

78-
### etherscanApi.getTransactions(address, startBlock, endBlock, offset, page, sort) ⇒ <code>Promise.&lt;Array.&lt;object&gt;&gt;</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.&lt;Array.&lt;object&gt;&gt;</code>
91+
Returns a list of 'Normal' transactions by address.
92+
Returns up to a maximum of the last 10000 transactions only.
8193

8294
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
8395

8496
| Param | Type | Description |
8597
| --- | --- | --- |
8698
| 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>&quot;asc&quot;</code> \| <code>&quot;desc&quot;</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>&quot;asc&quot;</code> \| <code>&quot;desc&quot;</code> | Sort type |
92105

93106
<a name="EtherscanApi+getInternalTransactions"></a>
94107

95-
### etherscanApi.getInternalTransactions(address, startBlock, endBlock, offset, page, sort) ⇒ <code>Promise.&lt;Array.&lt;object&gt;&gt;</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.&lt;Array.&lt;object&gt;&gt;</code>
109+
Returns a list of 'Internal' Transactions by Address.
110+
Returns up to a maximum of the last 10000 transactions only.
98111

99112
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
100113

101114
| Param | Type | Description |
102115
| --- | --- | --- |
103116
| 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>&quot;asc&quot;</code> \| <code>&quot;desc&quot;</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>&quot;asc&quot;</code> \| <code>&quot;desc&quot;</code> | Sort type |
109123

110124
<a name="EtherscanApi+getInternalTransactionsByHash"></a>
111125

@@ -120,17 +134,18 @@ Returns a list of 'Internal' Transactions by Address
120134

121135
<a name="EtherscanApi+getMinedBlocks"></a>
122136

123-
### etherscanApi.getMinedBlocks(address, type, offset, page) ⇒ <code>Promise.&lt;Array.&lt;object&gt;&gt;</code>
137+
### etherscanApi.getMinedBlocks(address, [options]) ⇒ <code>Promise.&lt;Array.&lt;object&gt;&gt;</code>
124138
List of blocks mined by address
125139

126140
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
127141

128-
| Param | Type | Default | Description |
129-
| --- | --- | --- | --- |
130-
| address | <code>string</code> | | Miner address |
131-
| type | <code>&quot;blocks&quot;</code> \| <code>&quot;uncles&quot;</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>&quot;blocks&quot;</code> \| <code>&quot;uncles&quot;</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 |
134149

135150
<a name="EtherscanApi+getContractAbi"></a>
136151

@@ -182,28 +197,29 @@ Get block and uncle rewards by block number
182197

183198
<a name="EtherscanApi+getEventsLogs"></a>
184199

185-
### etherscanApi.getEventsLogs(address, fromBlock, toBlock, topic0, [topic01operator], [topic1], [topic12operator], [topic2], [topic23operator], [topic3], [topic02operator]) ⇒ <code>Promise.&lt;object&gt;</code>
200+
### etherscanApi.getEventsLogs(address, options) ⇒ <code>Promise.&lt;object&gt;</code>
186201
Returns events logs.
187202
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
190205
considerations, only the first 1000 results are return.
191206

192207
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
193208

194209
| Param | Type | Description |
195210
| --- | --- | --- |
196211
| address | <code>string</code> | |
197-
| fromBlock | <code>number</code> | Start block number (integer, NOT hex) |
198-
| toBlock | <code>number</code> \| <code>&#x27;latest&#x27;</code> | End block number or "latest" (earliest and pending is NOT supported yet) |
199-
| topic0 | <code>string</code> | Topic 0 |
200-
| [topic01operator] | <code>&quot;and&quot;</code> \| <code>&quot;or&quot;</code> | Operator between topic0 & topic1 |
201-
| [topic1] | <code>string</code> | Topic 1 |
202-
| [topic12operator] | <code>&quot;and&quot;</code> \| <code>&quot;or&quot;</code> | Operator between topic1 & topic2 |
203-
| [topic2] | <code>string</code> | Topic 2 |
204-
| [topic23operator] | <code>&quot;and&quot;</code> \| <code>&quot;or&quot;</code> | Operator between topic2 & topic3 |
205-
| [topic3] | <code>string</code> | Topic 3 |
206-
| [topic02operator] | <code>&quot;and&quot;</code> \| <code>&quot;or&quot;</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>&#x27;latest&#x27;</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>&quot;and&quot;</code> \| <code>&quot;or&quot;</code> | Operator between topic0 & topic1 |
217+
| [options.topic1] | <code>string</code> | Topic 1 |
218+
| [options.topic12operator] | <code>&quot;and&quot;</code> \| <code>&quot;or&quot;</code> | Operator between topic1 & topic2 |
219+
| [options.topic2] | <code>string</code> | Topic 2 |
220+
| [options.topic23operator] | <code>&quot;and&quot;</code> \| <code>&quot;or&quot;</code> | Operator between topic2 & topic3 |
221+
| [options.topic3] | <code>string</code> | Topic 3 |
222+
| [options.topic02operator] | <code>&quot;and&quot;</code> \| <code>&quot;or&quot;</code> | Operator between topic0 & topic2 |
207223

208224
<a name="EtherscanApi+getRecentBlockNumber"></a>
209225

@@ -272,14 +288,16 @@ index position
272288

273289
<a name="EtherscanApi+getTransactionCount"></a>
274290

275-
### etherscanApi.getTransactionCount(address) ⇒ <code>Promise.&lt;number&gt;</code>
291+
### etherscanApi.getTransactionCount(address, [options]) ⇒ <code>Promise.&lt;number&gt;</code>
276292
Returns the number of transactions sent from an address
277293

278294
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
279295

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>&quot;latest&quot;</code> | |
283301

284302
<a name="EtherscanApi+sendRawTransaction"></a>
285303

@@ -306,65 +324,73 @@ Returns the receipt of a transaction by transaction hash
306324

307325
<a name="EtherscanApi+call"></a>
308326

309-
### etherscanApi.call(to, data) ⇒ <code>Promise.&lt;string&gt;</code>
327+
### etherscanApi.call(to, data, [options]) ⇒ <code>Promise.&lt;string&gt;</code>
310328
Executes a new message call immediately without creating a transaction on
311329
the block chain
312330

313331
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
314332

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>&quot;latest&quot;</code> | |
319339

320340
<a name="EtherscanApi+getCode"></a>
321341

322-
### etherscanApi.getCode(address) ⇒ <code>Promise.&lt;string&gt;</code>
342+
### etherscanApi.getCode(address, [options]) ⇒ <code>Promise.&lt;string&gt;</code>
323343
Returns code at a given address
324344

325345
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
326346

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>&quot;latest&quot;</code> |
330352

331353
<a name="EtherscanApi+getStorageAt"></a>
332354

333-
### etherscanApi.getStorageAt(address, position) ⇒ <code>Promise.&lt;string&gt;</code>
355+
### etherscanApi.getStorageAt(address, position, options) ⇒ <code>Promise.&lt;string&gt;</code>
334356
Returns the value from a storage position at a given address.
335357

336358
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
337359

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>&quot;latest&quot;</code> |
342366

343367
<a name="EtherscanApi+getGasPrice"></a>
344368

345-
### etherscanApi.getGasPrice([unit]) ⇒ <code>Promise.&lt;string&gt;</code>
369+
### etherscanApi.getGasPrice([options]) ⇒ <code>Promise.&lt;string&gt;</code>
346370
Returns the current price per gas (in wei by default)
347371

348372
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
349373

350374
| Param | Type | Default | Description |
351375
| --- | --- | --- | --- |
352-
| [unit] | <code>string</code> | <code>&quot;wei&quot;</code> | Unit of gas |
376+
| [options] | <code>object</code> | | |
377+
| [options.unit] | <code>string</code> | <code>&quot;wei&quot;</code> | Unit of gas |
353378

354379
<a name="EtherscanApi+estimateGas"></a>
355380

356-
### etherscanApi.estimateGas(to, value, gasPrice, gas) ⇒ <code>Promise.&lt;void&gt;</code>
381+
### etherscanApi.estimateGas(toAddress, options) ⇒ <code>Promise.&lt;void&gt;</code>
357382
Makes a call or transaction, which won't be added to the blockchain and
358383
returns the used gas, which can be used for estimating the used gas
359384

360385
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
361386

362387
| Param | Type | Description |
363388
| --- | --- | --- |
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> | |
368394

369395
<a name="EtherscanApi+getTokenByContractAddress"></a>
370396

@@ -379,14 +405,17 @@ Returns ERC20-Token total supply by contract address
379405

380406
<a name="EtherscanApi+getTokenBalanceByContractAddress"></a>
381407

382-
### etherscanApi.getTokenBalanceByContractAddress(contractAddress) ⇒ <code>Promise.&lt;string&gt;</code>
408+
### etherscanApi.getTokenBalanceByContractAddress(contractAddress, address, [options]) ⇒ <code>Promise.&lt;string&gt;</code>
383409
Returns ERC20-Token account balance by token's contract address
384410

385411
**Kind**: instance method of [<code>EtherscanApi</code>](#EtherscanApi)
386412

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> |
390419

391420
<a name="EtherscanApi+getTotalEtherSupply"></a>
392421

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.