
Research
Security News
Malicious npm Packages Target BSC and Ethereum to Drain Crypto Wallets
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
etherscanner
Advanced tools
Receive all the ethereum transactions that have been included in the block, including 'internal' transactions
Module for parse ethereum transactions or block and get from them all Eth transfers (normal and "internal")
To work the module need this correction - https://github.com/ethereum/go-ethereum/pull/15297. So you must use geth version 1.7.3 or higher
npm install etherscanner
const EtherScanner = require('etherscanner');
const Web3 = require('web3');
let web3Provider = new Web3.providers.HttpProvider(`http://localhost:6082`);
// or if web3 initialized before
let web3Provider = web3.currentProvider;
let etherScanner = EtherScanner(web3Provider);
etherScanner.scanTransaction('0xc475f8bf9d2721b17f7c09944c2aa32ea943f452cb54ee0aefcb98ead0735274', (err, result) => {
console.log(result);
});
result:
[{
"hash": "0xc475f8bf9d2721b17f7c09944c2aa32ea943f452cb54ee0aefcb98ead0735274",
"from": "0x1617d6e2dca84fec5c17f37d4141d2c4ec5c6d05",
"to": "0xd1a2511bc222f38f463c62c9254faf7b710835e4",
"value": 10000000000000000,
"blockNumber": 1818075,
"blockHash": "0x402a1df2fe61dcc83bec29c1202938e2fd739d97e614dbab351561dc04b01cd3",
"isInternal": false,
"type": ""
}, {
"hash": "0xc475f8bf9d2721b17f7c09944c2aa32ea943f452cb54ee0aefcb98ead0735274",
"from": "0xd1a2511bc222f38f463c62c9254faf7b710835e4",
"to": "0x1617d6e2dca84fec5c17f37d4141d2c4ec5c6d05",
"value": 12468329110548072,
"blockNumber": 1818075,
"blockHash": "0x402a1df2fe61dcc83bec29c1202938e2fd739d97e614dbab351561dc04b01cd3",
"isInternal": true,
"type": "CALL"
}]
type - "" || CALL || CREATION || SELFDESTRUCT
etherScanner.scanBlock(1822433, (err, result) => {
console.log(result);
});
FAQs
Receive all the ethereum transactions that have been included in the block, including 'internal' transactions
The npm package etherscanner receives a total of 4 weekly downloads. As such, etherscanner popularity was classified as not popular.
We found that etherscanner 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.
Research
Security News
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
Security News
TC39 advances 9 JavaScript proposals, including Array.fromAsync, Error.isError, and Explicit Resource Management, which are now headed into the ECMAScript spec.
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.