Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.