Skip to content

Commit 4526164

Browse files
committed
(docs): cdn
1 parent 0cc396e commit 4526164

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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');
2525
var balance = api.account.balance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
2626
balance.then(function(balanceData){
2727
console.log(balanceData);

docs/tutorial.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
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+
```

0 commit comments

Comments
 (0)