Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 516214c

Browse files
committed
Finish markdown
2 parents bf55a23 + 5f7e007 commit 516214c

20 files changed

+1100
-289
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: node_js
2+
node_js:
3+
- "8"

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright © 2018 Danakt Frost
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Node.js Etherscan API
2+
3+
Node.js package to interact with official [Etherscan API](https://etherscan.io/apis)
4+
5+
## Install
6+
7+
```bash
8+
$ npm install node-etherscan-api
9+
```
10+
11+
## Usage
12+
13+
```js
14+
const Etherscan = require('node-etherscan-api')
15+
16+
// Replace the value below with the your Etherscan token
17+
const TOKEN_API = 'YourApiKeyToken'
18+
19+
// Creating the Etherscan instance
20+
const etherscan = new Etherscan(TOKEN_API)
21+
22+
// Creating a request for account balance in Ether (default returns in Wei)
23+
etherscan
24+
.getAccountBalance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae', 'eth')
25+
.then(balance => {
26+
// Working with the balance here
27+
console.log(balance)
28+
})
29+
```
30+
31+
## Documentation
32+
33+
**[API reference](docs/API.md)**
34+
35+
The API reference was generated by JSDoc.
36+
If you use Typescript, you can use the more detailed reference found in the [type declaration file](index.d.ts)
37+
38+
## License
39+
40+
**The MIT License (MIT)**
41+
42+
Copyright © 2018 Danakt Frost

0 commit comments

Comments
 (0)