
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Node.js library for communicating with the Etherscan API.
$ npm i request
$ npm i etherscan
request
is defined as a peer-dependency and thus has to be installed separately.
$ npm test
Requirements (Node.js >= 8.0.0).
const Etherscan = require('etherscan');
Use --experimental-modules flag and .mjs extension (Node.js >= 8.6.0).
import Etherscan from 'etherscan';
import Etherscan from 'etherscan';
const etherscan = new Etherscan(API_KEY); // Some methods working without API_KEY
(async () => {
const data = await etherscan.getEtherBalance({
address: '0x00'
});
})();
Get Ether balance for a single address.
etherscan.getEtherBalance({
address: '0x00',
tag: 'latest' // Optional, default 'latest'
});
Get Ether balance for multiple addresses in a single call.
etherscan.getEtherBalanceMulti({
address: ['0x00', '0x01'],
tag: 'latest' // Optional, default 'latest'
});
Get a list of normal
transactions by address.
etherscan.getTxList({
address: '0x00',
startblock: 0, // Optional
endblock: 0, // Optional
sort: 'desc' // Optional, default 'asc'
});
Get a list of internal
transactions by address.
etherscan.getTxListInternal({
address: '0x00',
startblock: 0, // Optional
endblock: 0, // Optional
sort: 'desc' // Optional, default 'asc'
});
FAQs
Node.js library for communicating with the Etherscan API.
The npm package etherscan receives a total of 522 weekly downloads. As such, etherscan popularity was classified as not popular.
We found that etherscan demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.