
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
node-stratum-client
Advanced tools
Stratum protocol client for Node.js
$ npm install node-stratum-client --save
import StratumClient from "node-stratum-client"
const client = new StratumClient()
const POOL_PORT = 4233
const POOL_HOST = "example.com"
const WORKER_NAME = "ABCDabcd12345678"
client.onNotify(res => {
console.log("notify", res)
})
client.onSetDifficulty(res => {
console.log("set difficulty", res)
})
client.onSocketError(error => {
console.error("socket error", error)
})
client.onSocketClose(() => {
console.log("socket closed")
})
client.connect(POOL_PORT, POOL_HOST)
.then(() => {
console.log("connection successful")
return client.authorize(WORKER_NAME)
})
.then(res => {
console.log("authorize successful", res)
return client.subscribe()
})
.then(res => {
console.log("subscription successful", res)
return client.getTransactions("0")
})
.then(res => {
console.log("getTransactions successful", res)
})
.catch(error => {
console.error("error", error)
})
$ npm start
$ npm run test
FAQs
Stratum protocol client for Node.js
The npm package node-stratum-client receives a total of 0 weekly downloads. As such, node-stratum-client popularity was classified as not popular.
We found that node-stratum-client 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.