File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Promised API to access the etherscan.io REST interface
2121
2222
2323``` javascript
24- var api = require (' etherscan-api' ).init ();
24+ var api = require (' etherscan-api' ).init (' YourApiKey ' );
2525var balance = api .account .balance (' 0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' );
2626balance .then (function (balanceData ){
2727 console .log (balanceData);
Original file line number Diff line number Diff line change 11# Tutorial
22
3- The tutorial
3+ You can use a simple include, containing all code required to use the api.
4+ Just use the cdn.
5+
6+ ## Use from CDN
7+
8+ Latest
9+
10+ ``` html
11+ <script src =" https://cdn.rawgit.com/sebs/etherscan-api/dist/bundle.js" ></script >
12+ ```
13+
14+ A specific version
15+
16+ ``` html
17+ <script src =" https://cdn.rawgit.com/sebs/etherscan-api/v1.3.0/dist/bundle.js" ></script >
18+ ```
You can’t perform that action at this time.
0 commit comments