Skip to content

Commit 16ac604

Browse files
committed
Updates
1 parent 6edd064 commit 16ac604

15 files changed

+115
-67
lines changed

index.html

Lines changed: 22 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -102,49 +102,36 @@
102102
<section class="readme-section">
103103
<article><h1>Etherscan API</h1><p><a href="https://badge.fury.io/js/etherscan-api"><img src="https://badge.fury.io/js/etherscan-api.svg" alt="npm version"></a> <a href="https://travis-ci.org/sebs/etherscan-api"><img src="https://travis-ci.org/sebs/etherscan-api.svg?branch=master" alt="Build Status"></a> <a href=""><img src="https://img.shields.io/npm/dt/etherscan-api.svg?maxAge=2592000" alt="npm"></a></p>
104104
<p>A way to access the <a href="https://etherscan.io/apis">etherscan.io api</a> using promises. Fetch a diverse set of information about the blockchain</p>
105+
<p>Livenet</p>
105106
<pre class="prettyprint source lang-javascript"><code>var api = require('etherscan-api').init('YourApiKey');
106107
var balance = api.account.balance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
107108
balance.then(function(balanceData){
108109
console.log(balanceData);
109-
});</code></pre><h2>Install</h2><pre class="prettyprint source lang-bash"><code> npm install etherscan-api --save</code></pre><h2>Api</h2><p><a href="https://sebs.github.io/etherscan-api/">Full Api Docs</a></p>
110+
});</code></pre><h2>For testnet usage</h2><p>Supported:</p>
110111
<ul>
111-
<li>block.getblockreward</li>
112-
<li>transaction.getstatus</li>
113-
<li>contract.getabi</li>
114-
<li>account<ul>
115-
<li>getminedblocks</li>
116-
<li>tokenbalance by name</li>
117-
<li>tokenbalance by address</li>
118-
<li>txlist</li>
119-
<li>txlistinternal</li>
120-
<li>balance</li>
121-
<li>balance multi</li>
112+
<li>morden</li>
113+
<li>ropsten</li>
114+
<li>rinkeby</li>
122115
</ul>
123-
</li>
124-
<li>stats<ul>
125-
<li>ethsupply</li>
126-
<li>tokensupply by tokenname</li>
127-
<li>tokensupply by address</li>
128-
<li>ethprice</li>
116+
<p>Latest</p>
117+
<pre class="prettyprint source lang-javascript"><code>var api = require('etherscan-api').init('YourApiKey','rinkeby');</code></pre><p>Old Default</p>
118+
<pre class="prettyprint source lang-javascript"><code>var api = require('etherscan-api').init('YourApiKey','testnet');</code></pre><h2>Install</h2><pre class="prettyprint source lang-bash"><code> npm install etherscan-api --save</code></pre><h2>Api</h2><p><a href="https://sebs.github.io/etherscan-api/">Full Api Docs</a></p>
119+
<h2>Development workflow</h2><ul>
120+
<li>npm test - runs tests<ul>
121+
<li>npm run posttest - starts the linter</li>
129122
</ul>
130123
</li>
131-
<li>proxy<ul>
132-
<li>proxy.eth_blockNumber</li>
133-
<li>proxy.eth_getBlockByNumber</li>
134-
<li>proxy.eth_getUncleByBlockNumberAndIndex</li>
135-
<li>proxy.eth_getBlockTransactionCountByNumber</li>
136-
<li>proxy.eth_getTransactionByHash</li>
137-
<li>proxy.eth_getTransactionByBlockNumberAndIndex</li>
138-
<li>proxy.eth_getTransactionCount</li>
139-
<li>proxy.eth_sendRawTransaction</li>
140-
<li>proxy.eth_getTransactionReceipt</li>
141-
<li>proxy.eth_call</li>
142-
<li>proxy.eth_getCode</li>
143-
<li>proxy.eth_getStorageAt</li>
144-
<li>proxy.eth_gasPrice</li>
145-
<li>proxy.eth_estimateGas</li>
124+
<li>npm run lint - preconfigured linter </li>
125+
<li>npm run docs - generates the apidocs</li>
126+
<li>npm run bundle - builds a new bundle</li>
127+
<li>npm run preversion - Steps before we create a new Tag <ul>
128+
<li>lint </li>
129+
<li>changelog</li>
146130
</ul>
147131
</li>
132+
<li>npm run pages - pushes generated apidocs to the server</li>
133+
<li>postversion - after generating a new version, push the tag to the server</li>
134+
<li>npm run changelog - generates a changelog and pushes it</li>
148135
</ul></article>
149136
</section>
150137

@@ -195,9 +182,9 @@ <h4 class="modal-title">Search results</h4>
195182
</span>
196183

197184
<span class="jsdoc-message">
198-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a>
185+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
199186

200-
on 2016-10-13T22:07:48+02:00
187+
on 2017-04-25T08:31:54+02:00
201188

202189
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
203190
</span>

module-etherscan_api-account.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,9 +1084,9 @@ <h4 class="modal-title">Search results</h4>
10841084
</span>
10851085

10861086
<span class="jsdoc-message">
1087-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a>
1087+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
10881088

1089-
on 2016-10-13T22:07:48+02:00
1089+
on 2017-04-25T08:31:54+02:00
10901090

10911091
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
10921092
</span>

module-etherscan_api-block.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,9 @@ <h4 class="modal-title">Search results</h4>
384384
</span>
385385

386386
<span class="jsdoc-message">
387-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a>
387+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
388388

389-
on 2016-10-13T22:07:48+02:00
389+
on 2017-04-25T08:31:54+02:00
390390

391391
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
392392
</span>

module-etherscan_api-contract.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ <h4 class="modal-title">Search results</h4>
370370
</span>
371371

372372
<span class="jsdoc-message">
373-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a>
373+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
374374

375-
on 2016-10-13T22:07:48+02:00
375+
on 2017-04-25T08:31:54+02:00
376376

377377
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
378378
</span>

module-etherscan_api-log.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ <h4 class="modal-title">Search results</h4>
290290
</span>
291291

292292
<span class="jsdoc-message">
293-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a>
293+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
294294

295-
on 2016-10-13T22:07:48+02:00
295+
on 2017-04-25T08:31:54+02:00
296296

297297
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
298298
</span>

module-etherscan_api-proxy.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,9 +2473,9 @@ <h4 class="modal-title">Search results</h4>
24732473
</span>
24742474

24752475
<span class="jsdoc-message">
2476-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a>
2476+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
24772477

2478-
on 2016-10-13T22:07:48+02:00
2478+
on 2017-04-25T08:31:54+02:00
24792479

24802480
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
24812481
</span>

module-etherscan_api-stats.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,9 @@ <h4 class="modal-title">Search results</h4>
593593
</span>
594594

595595
<span class="jsdoc-message">
596-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a>
596+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
597597

598-
on 2016-10-13T22:07:48+02:00
598+
on 2017-04-25T08:31:54+02:00
599599

600600
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
601601
</span>

module-etherscan_api-transaction.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@ <h4 class="modal-title">Search results</h4>
360360
</span>
361361

362362
<span class="jsdoc-message">
363-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a>
363+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
364364

365-
on 2016-10-13T22:07:48+02:00
365+
on 2017-04-25T08:31:54+02:00
366366

367367
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
368368
</span>

module-etherscan_api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ <h4 class="modal-title">Search results</h4>
226226
</span>
227227

228228
<span class="jsdoc-message">
229-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a>
229+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
230230

231-
on 2016-10-13T22:07:48+02:00
231+
on 2017-04-25T08:31:54+02:00
232232

233233
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
234234
</span>

modules.list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ <h4 class="modal-title">Search results</h4>
231231
</span>
232232

233233
<span class="jsdoc-message">
234-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a>
234+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
235235

236-
on 2016-10-13T22:07:48+02:00
236+
on 2017-04-25T08:31:54+02:00
237237

238238
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
239239
</span>

0 commit comments

Comments
 (0)