Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Etherscan API for Node.js

License

NotificationsYou must be signed in to change notification settings

microftech65/node-etherscan-api

 
 

Repository files navigation

npmTravis branch

Node.js package to interact with officialEtherscan API

Documentation

API reference

The API reference was generated by JSDoc.If you use Typescript, you can use the more detailed reference found in thetype declaration file

Install

$ npm install node-etherscan-api

Usage

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)})

License

The MIT License (MIT)

Copyright © 2018 Danakt Frost


[8]ページ先頭

©2009-2025 Movatter.jp