Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@digicat/ethereum-transaction-watcher
Advanced tools
Watch transactions on a web3.js-compatible Ethereum network, providing callbacks for when receipts are received
This package can watch transactions on a web3.js-compatible Ethereum network, providing callbacks for when receipts are received. Requires Node.js 8.6 or newer.
const TransactionWatcher = require('@digicat/ethereum-transaction-watcher')
const watcher = new TransactionWatcher({
ethereumNode: 'http://localhost:8545',
interval: 60000, // Interval on which we check for receipts. Default is 60s.
onError (err, token) {
// Called when an error occurred when getting a transaction receipt.
//
// Expected to be synchronous.
},
onReceipt (receipt, token) {
// Called when a transaction receipt is received for a transaction hash
// that's being watched.
//
// Can be asynchronous (if you return a promise). Won't interleave with
// other events.
},
wrapWeb3Error (err) {
// Allows for underlying Web3 errors to be wrapped in another Error class.
// By default returns the error as-is.
return err
}
})
// Start watching a new transaction hash. The `token` is provided in callbacks
// as-is.
watcher.add({
hash: '0xe9d7d2bc7b98b1e5090b9363453836ab89b290415e997acb8d773e4f46440c09',
token: {
an: {
arbitrary: 'object'
}
}
})
// Stop watching all transactions.
watcher.stop()
FAQs
Watch transactions on a web3.js-compatible Ethereum network, providing callbacks for when receipts are received
The npm package @digicat/ethereum-transaction-watcher receives a total of 1 weekly downloads. As such, @digicat/ethereum-transaction-watcher popularity was classified as not popular.
We found that @digicat/ethereum-transaction-watcher 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.