eterscan-api
Advanced tools
API to etherscan with a simple interface
Weekly downloads
Readme
A way to access the etherscan.io api using promises. Fetch a diverse set of information about the blockchain.
Mainnet
var api = require('etherscan-api').init('YourApiKey');
var balance = api.account.balance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
balance.then(function(balanceData){
console.log(balanceData);
});
const axios = require('axios');
const {
init,
pickChainUrl
} = require('..');
const chain = pickChainUrl(null);
const client = axios.create({
baseURL: chain,
timeout: 10000
});
var api = init('apikey', null, 10000, client);
Supported Chain Explorers
Latest
// apikey, network, timeout
var api = require('etherscan-api').init('YourApiKey','rinkeby'. '3000');
npm install etherscan-api --save
FAQs
security holding package
The npm package eterscan-api receives a total of 8 weekly downloads. As such, eterscan-api popularity was classified as not popular.
We found that eterscan-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.