
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.