Skip to main content

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.

BlockRazor Mempool Streams deliver real-time pushes of pending transactions with ultra-low latency, giving trading bots, MEV searchers, and on-chain analysts a first-mover advantage before transactions are confirmed. Whether you need broad public mempool coverage or exclusive access to BlockRazor’s private RPC orderflow, Mempool Streams integrate directly into your strategy pipeline via WebSocket with minimal setup.
The Public Mempool stream subscribes you to pending transactions broadcast across the high-performance BlockRazor network. Every transaction that enters the public mempool is pushed to your WebSocket connection in real time, allowing you to observe pending activity across the entire network before any block is produced.

Network

BSC (BNB Smart Chain)

Pricing

$300 / stream / month
Public Mempool streams include all pending transactions seen by BlockRazor’s high-performance nodes. Transaction ordering and inclusion are not guaranteed — this stream is designed for observation and signal detection.
Connecting to the Public Mempool StreamEstablish a WebSocket connection using your auth token. Each message contains a JSON-encoded pending transaction object.
const ws = new WebSocket('wss://mempool.blockrazor.io/bsc?auth=YOUR_AUTH_TOKEN');

ws.on('open', () => {
  console.log('Connected to BlockRazor Public Mempool');
});

ws.on('message', (data) => {
  const tx = JSON.parse(data);
  console.log('Pending tx:', tx.hash);
});

ws.on('error', (err) => {
  console.error('WebSocket error:', err);
});
Tx TraceAlongside raw pending transaction data, BlockRazor provides Tx Trace — a tool that monitors the propagation path of each transaction through the network and reports cross-regional latency distribution. This lets you understand exactly how quickly a transaction spreads from its origin node to validators across different geographic regions.
Tx Trace is included in the BSC Package subscription. Use it to benchmark your infrastructure latency against other market participants.
For full API details, see the Public Mempool API Reference.

Use Cases

Mempool Streams power a wide range of real-time on-chain strategies. The following are the most common applications:

Backrunning

Detect large swaps or liquidations in the mempool and place a follow-up transaction immediately after to capture price impact or arbitrage opportunities.

Copy Trading

Monitor wallets of interest and replicate their pending transactions in real time, entering positions simultaneously or ahead of confirmation.

Token Sniping

Watch for liquidity addition events or token launch transactions and execute buy orders within milliseconds of detection.

Choosing the Right Stream

FeaturePublic MempoolPrivate Mempool
Data sourcePublic broadcast networkBlockRazor RPC orderflow
Supported chainsBSCBSC, Ethereum
Latency advantageHighVery High
Price$300/stream/month$1,000/month
Tx Trace includedYes (BSC Package)
Both stream types can be combined with BlockRazor’s Bundle submission to act on detected signals within the same block. See the Bundle documentation for details.

Build docs developers (and LLMs) love