WebSocket
The WebSocket API streams real-time Solana DEX transactions directly to your application. Get instant notifications for token launches, swaps, migrations, and liquidity events—filtered exactly how you need them.
Why Use WebSocket?
Section titled “Why Use WebSocket?”- Real-time data: Stream directly from Solana blockchain nodes
- Server-side filtering: Only receive transactions matching your criteria
- Flexible filters: Track multiple tokens, wallets, or event types at once
Platforms Supported
Section titled “Platforms Supported”| Platform | Events |
|---|---|
| Pump Fun | Token launches, trades, migrations |
| Pump Swap | Pool creation, trades, liquidity deposits/withdrawals |
Filter Logic
Section titled “Filter Logic”Filters use array fields with simple logic:
- AND between fields — must match all specified fields
- OR within arrays — matches any value in the array
{ "platform": ["pump_fun", "pump_swap"], "eventType": ["trade"], "mint": ["TokenA...", "TokenB..."]}This matches: trades on either platform involving TokenA or TokenB.
See Subscribe for detailed examples.
Filter Fields
Section titled “Filter Fields”| Field | Description |
|---|---|
platform | DEX platform(s) — required |
eventType | Event type(s): trade, create, migrate, liquidity |
mint | Token mint address(es) |
pool | Pool address(es) — Pump Swap only |
user | Wallet address(es) |
Prerequisites
Section titled “Prerequisites”- API key from your beta access
Documentation
Section titled “Documentation”- Connect & authenticate — Establish connection
- Subscribe — Filter and receive transactions
- Reconnect strategy — Handle disconnections
- Unsubscribe & disconnect — Clean shutdown