MEMPOOL API · WebSocket · Kafka

Mempool API pending transactions & MEV across EVM chains

Skip running your own mempool node on every chain. We stream unconfirmed transactions — pending swaps, transfers and the live gas auction — over WebSocket, or fixed-cost Kafka on Enterprise, so you can act on a trade before it ever lands in a block.

<500ms
Kafka mempool latency on Enterprise
3 EVM
chain mempools, plus Tron
DEX+
pending swaps, decoded
0-conf
pending-tx visibility, before block
EVM.MempoolLIVEmempool.graphql · WebSocket
Pending txMethodValueGas
200 · WebSocket · livestreaming.bitquery.io
Trusted by 40,000+ developers & teams like
Binance logoChainalysis logoTRM Labs logoNansen logo0x logoCoinMarketCap logoCoin Metrics logoBybit logoLukka logo3Commas logoNexo logoTether logo
40+
Chains supported
1PB+
Blockchain data indexed
10B+
API calls / month
99.9%
Production uptime
01
Delivery channels

Pick your latency. Same pending-tx data underneath.

Design your query once in GraphQL, then read the same pending-tx data over WebSocket or Kafka. For the mempool, latency is everything. Kafka is the fastest lane, at under 500ms on Enterprise. WebSocket is self-service, at about a second.

FastestKafka
<500ms

Enterprise fixed-cost topics with offset replay — never miss a pending tx, backfill on reconnect.

Best for: bots, MEV, pipelines (Enterprise)
WebSocket
~1s

Browser-ready GraphQL subscriptions — subscribe to exactly the pending tx you filter.

Best for: dashboards, alerts
GraphQL
query

The same schema for confirmed history — backtest and hydrate deep ranges on Enterprise.

Best for: history, backfills
02
Mempool chain coverage

Pending transactions on Ethereum, BNB Chain, Polygon and Tron.

A single EVM(mempool: true, network: eth) query reads the pending pool on a chain. Filter by sender, recipient, contract or method — and watch swaps, transfers and the gas auction as they form, before anything confirms.

ChainTypeWhat you get
EtEthereumMainnetPending transactions, transfers and DEX swaps before they land in a block
BnBNB ChainBSCHigh-throughput pending swaps and transfers for PancakeSwap-era bots
PoPolygonPoSMempool transfers and swaps across Polygon's high-volume markets
TrTronNon-EVMPending TRX and USDT transfers through its own Tron(mempool: true) query
Mempool query examples in the docs →
03
Forget running your own mempool node

The mempool is noisy, fragmented and per-chain — we already tamed it.

Reading pending transactions yourself means a full node with a wide-open txpool on every chain, custom decoding of calldata into real methods, and constant work to keep up with re-orgs and dropped tx — and it still stops at the chain boundary. We stream the decoded mempool to you over one schema, so you get pre-confirmation signal on Ethereum, BNB Chain and Polygon at once.

What you're doing
Build it yourself
Bitquery Mempool API
See a transaction before it confirms
Run a node with an open txpool
Stream pending tx in one query
Pending swaps decoded to a method
Hand-decode calldata per router
Methods decoded for you
Spotting a sandwich as it forms
Decode every pending swap yourself
Pending swaps decoded, filter by pool
EVM chains in one place
A node per chain to babysit
One schema across EVM chains
The live gas / priority-fee auction
Sort the txpool yourself
Pending tx ranked by gas price
Sub-500ms delivery
Tune peering and propagation
Kafka stream on Enterprise, under 500ms
04
Build it this weekend

The mempool products people ship on us.

Each one is a filter on the same pending-tx firehose — subscribe over WebSocket, or use fixed-cost Kafka on Enterprise for the lowest latency.

WebSocket · Kafka

Frontrun protection

Watch your wallet or contract for inbound pending tx that could front-run yours, and react — delay, bump gas or reroute — before they confirm.

Read the docs →
Kafka · WebSocket

MEV / arbitrage bot

Stream pending DEX swaps and rank them by gas price to spot sandwich and arbitrage opportunities the instant they hit the mempool.

Read the docs →
WebSocket · Kafka

Liquidation sniper

Monitor the mempool for pending transfers and lending-protocol calls that move a position toward liquidation, and queue your bid first.

Read the docs →

What teams say about our data

"We did a thorough search of the market for the best onchain data. Bitquery came out on top — and now powers all live prices across Nansen. We don't think of them as a vendor. They're a partner."

A
Alexander Karsten
Nansen
Pre-conf
Pending tx, streamed before they confirm
<500ms
Kafka mempool stream latency on Enterprise
DEX+
Pending swaps decoded to the pool

Bitquery does the hard work of parsing blockchain transaction data into a usable form so that we don't have to. We use their interface to diagnose issues with complex transactions and their analytics as a starting point for our own.

0x Protocol logo
Alex Knaggs
0x Protocol

They proved they had the technology to deliver sophisticated data solutions. We extended our support through the Binance X fellowship — building an open-source library of visualization widgets on their blockchain data.

Director, Binance X logo
Flora Sun
Director, Binance X

The complex raw data is available at different levels of detail and from different viewpoints — whether we need simple aggregated transfers or parameters for failed contract calls. The support is responsive, friendly and quick.

Backend Developer, Blockpit logo
Jan Dreske
Backend Developer, Blockpit

Partnering with Bitquery has been highly cost-effective — leveraging their established infrastructure rather than building our own let us rapidly expand our blockchain support and reach a much broader segment of on-chain users.

Co-Founder, Syla logo
Nick Christie
Co-Founder, Syla

Bitquery's products are very intuitive and easy to use. We currently use their products to obtain DEX-related trading and liquidity information, which saves us the manpower and tedious technical details required to develop our own system. Their excellent technical team deserves special praise; they provide near-24/7 support and resolve issues quickly. I greatly appreciate their products and work ethic.

Ourbit logo
Data Team
Ourbit

Bitquery provides the infrastructure we rely on every day. Fast, reliable, and comprehensive across the chains that matter to our business.

Webacy
Webacy
webacy.com

Pricing

Start free. Scale when you ship.

Self-service plans cover 10 core chains with flat-rate add-ons: no surprise invoices. Every paid plan starts with a 7-day free trial.

Personal

For side projects, learning & testing. Personal use only, no commercial use.

$29/ month

billed annually ($348/yr) · save 41%

+ Add-on points anytime · $35 / 1M
  • 100k API points / mo ≈ 20k calls
  • 30 req/min · 3 simultaneous
  • Full GraphQL & REST schema
  • Real-time data · 10 core chains 30-day trades · 8 hours to 4 days on-chain
  • API only, no streams
  • Community support
Start free trial

Pro

For trading bots, alerts & dashboards on live onchain and DEX data.

$69/ month

billed annually ($828/yr) · save 30%

+ Flat-rate add-ons: points, minutes & GB
  • 1M API points / mo ≈ 200k calls
  • 90 req/min · 6 simultaneous
  • 100k stream-minutes + 5 GB
  • 100 concurrent streams
  • All streams onchain + mempool
  • Commercial-use license
  • Real-time data · 10 core chains 30-day trades · 8 hours to 4 days on-chain
  • Community + Telegram support
Start free trial
Recommended

Scale

For production real-time apps: every stream, scale on demand.

$199/ month

billed annually ($2,388/yr) · save 33%

+ Flat-rate add-ons: points, minutes & GB
  • 5M API points / mo ≈ 1M calls
  • 240 req/min · 12 simultaneous
  • 2M stream-minutes + 50 GB
  • 1,000 concurrent streams
  • All streams onchain + mempool
  • Commercial-use license
  • Dedicated Slack support
Choose Scale →

Enterprise

Full history, unlimited streams & bulk delivery at scale.

Custom

flat platform fee, no metering

◆ Flat platform fee: modelled, not metered
  • Complete history · 25 chains
  • Unlimited WebSocket streaming no stream-min or GB limit
  • Custom points & rate limits
  • Kafka fixed-cost · S3 bulk export
  • Coinpath® money flow
  • SLA · SSO · dedicated support
Talk to sales

Flat-rate add-ons: $35 / 1M points on every self-service plan · $35 / 200k stream-minutes and $35 / 5 GB on Pro and Scale (bought yearly · save 30%). Billed only for what you add, with volume packs that cut the rate as you scale.

Historical data is sold separately: self-service plans are real-time only. Per-chain archive packs start at $100/mo ($70/mo billed yearly); transfers, balances & holders are $150/mo ($105/mo yearly) on most chains. EVM and Tron trading and transfers packs include calls and events. See historical add-ons →

FAQ

Mempool & pending-tx questions, answered.

How do I get mempool data with Bitquery?
Subscribe to the EVM(mempool: true, network: eth) Transactions dataset over WebSocket (Kafka mempool topics on Enterprise). Sign up at account.bitquery.io for an API key, then filter pending transactions by sender, recipient, contract or method — streamed before they land in a block.
Which chains have mempool support?
Ethereum, BNB Chain and Polygon, all on the same EVM pending-transaction schema, so one query shape works on all three. Tron has a mempool too, through its own Tron(mempool: true) query. Base, Arbitrum and Optimism have no mempool feed over GraphQL or WebSocket: a mempool: true query on those networks returns an error.
Can I detect sandwich attacks?
Partly. The stream shows pending swaps, so you can watch a large swap on a pool and the transactions that gather around it before they land. A sandwich sent privately to a block builder never shows up as pending, though: in a 10-minute Ethereum test on 5 October 2026, 46% of confirmed transactions appeared in the mempool stream first. Nothing in the data tags a transaction as MEV, so the detection logic is yours.
How fast is the mempool stream?
WebSocket subscriptions on self-service deliver pending transactions in about a second, for browser-ready dashboards and alerts. Fixed-cost Kafka on Enterprise is the fastest lane, under 500ms, for bots that act on a swap before it confirms.
Are pending DEX swaps decoded into methods?
Yes. The Transactions dataset exposes the called method, sender, recipient and gas, so you can filter for router calls like swapExactTokensForTokens directly instead of hand-decoding raw calldata.
How is this different from the DEX Trades API?
The DEX Trades API gives you confirmed, decoded swaps after they land in a block; the Mempool API streams unconfirmed transactions before confirmation — the pre-trade edge for sniping, MEV and front-run protection.

Ship your mempool product this week.

7-day free trial — pending transactions streamed over WebSocket, no node to run. Read the mempool before it confirms in your first call.

7-day free trial · Streaming from $99/mo · EVM mempool coverage included