forked fromdanakt/node-etherscan-api
- Notifications
You must be signed in to change notification settings - Fork0
microftech65/node-etherscan-api
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Node.js package to interact with officialEtherscan API
The API reference was generated by JSDoc.If you use Typescript, you can use the more detailed reference found in thetype declaration file
$ npm install node-etherscan-api
constEtherscan=require('node-etherscan-api')// Replace the value below with the your Etherscan tokenconstTOKEN_API='YourApiKeyToken'// Creating the Etherscan instanceconstetherscan=newEtherscan(TOKEN_API)// Creating a request for account balance in Ether (default returns in Wei)etherscan.getAccountBalance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae','eth').then(balance=>{// Working with the balance hereconsole.log(balance)}).catch(err=>{// Handle error hereconsole.error(err)})
The MIT License (MIT)
Copyright © 2018 Danakt Frost
About
Etherscan API for Node.js
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- JavaScript100.0%