The Public Mempool stream delivers low-latency pushes of every pending transaction broadcast across the BSC network. By connecting to this WebSocket endpoint, your application receives a live feed of unconfirmed transactions the moment they appear in the mempool — giving you the edge needed for backrunning, copy trading, sniping, and other latency-sensitive strategies. The stream is priced at $300 per stream per month, with volume discounts available for multi-month subscriptions.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/BlockRazorinc/docs_en/llms.txt
Use this file to discover all available pages before exploring further.
This stream covers the public BSC mempool — all transactions propagated through the peer-to-peer network. For transactions submitted through BlockRazor RPC that are not yet public, see the Private Mempool stream.
Connection Details
| Property | Value |
|---|---|
| Protocol | WebSocket (WSS) |
| Endpoint | wss://mempool.blockrazor.io/bsc/public?auth=YOUR_AUTH_TOKEN |
| Pricing | $300 / stream / month |
| Chain | BNB Smart Chain (BSC) |
Replace
YOUR_AUTH_TOKEN with the API token issued in your BlockRazor dashboard. Keep this token secret — it authenticates your subscription.Authentication
Pass your auth token as a query parameter when opening the WebSocket connection:Code Example
The example below uses thews package for Node.js to connect and log every incoming pending transaction:
Response Fields
Each WebSocket message is a JSON object representing a single pending transaction. The fields are described below.The transaction hash — a 32-byte hex string uniquely identifying this pending transaction on the BSC network (e.g.
0xabc123...).The sender’s Ethereum-compatible address that signed and originated the transaction (e.g.
0xDe0B295...).The recipient address or contract address being called. May be
null for contract-creation transactions.The amount of BNB transferred, expressed as a hex-encoded integer in wei (e.g.
"0x16345785d8a0000" for 0.1 BNB).The gas limit set by the sender, as a hex-encoded integer (e.g.
"0x5208" for 21000 gas).The gas price the sender is willing to pay, expressed as a hex-encoded integer in wei (e.g.
"0x3B9ACA00" for 1 Gwei).The ABI-encoded calldata for the transaction. Empty string (
"0x") for simple BNB transfers; contains function selector and arguments for contract calls.Example Message
Pricing & Discounts
| Subscription Period | Discount |
|---|---|
| 1 month | — |
| 3 months | 5% off |
| 6 months | 10% off |
| 9 months | 15% off |
| 12 months | 20% off |
The Public Mempool stream is also available as part of the BSC Package bundle. See the Pricing page for details.