
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
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 etherscann receives a total of 50 weekly downloads. As such, etherscann popularity was classified as not popular.
We found that etherscann 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 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.