
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@mempoolnode/ws
Advanced tools
Mempool Node WebSocket NPM package. An helpful utility wrapper around the underlying connection mechanism which adds useful functionality; auto-reconnects, authentication, and an easy API to use it with.
A NodeJS package to help you monitor prechain mempool data for DEXs, DAPPs, & NFTs on popular blockchains such as Binance Smart Chain(BSC) and Ethereum(ETH) via Mempool Node's WebSocket endpoint. Receive detailed decoded data.
You can either use the bundled compiled .js, or build the Typescript yourself using your own tsconfigs.
Find detailed documentation via our Developer Docs.
Follow these steps to connect to the Mempool WebSocket:
Install the package
npm i @mempoolnode/ws
Get your API Key from the Mempool Node Dashboard, if you don't have an account you can create one for free, and filter the contract address you wish to monitor it's mempool data on, available for both ETH & BSC.
Create an instance of the connection manager
import { connectionManager } from "@mempoolnode/ws";
//Pass in the API Key, obtained from the Mempool Node Dashboard.
let connection = connectionManager('{YOUR-API-KEY}');
Start your connection, passing in a callback handler for the transaction, and an optional error message handler.
//To begin receiving decoded mempool data, start the connection
connection.start((transaction) => console.log(transaction))
To prevent consuming your API Limits in the background, don't forget to stop your connection when finished
//Stop the connection to the Mempool WebSocket
connection.stop()
FAQs
Mempool Node WebSocket NPM package. An helpful utility wrapper around the underlying connection mechanism which adds useful functionality; auto-reconnects, authentication, and an easy API to use it with.
We found that @mempoolnode/ws demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.