Connection
Connect to the WebSocket server atwss://ws.raze.bot/ws/sol with your API key as a query parameter.
Endpoint: wss://ws.raze.bot/ws/sol — GeoDNS routes to the nearest region automatically.
JavaScript
Subscribe to Event Types
Listen for all deploys, trades, and alerts in real time.Subscribe to Specific Mints
Track trades for specific token mint addresses.Subscribe to Wallet Signers
Track all trades from specific wallets.Combined Subscription
Subscribe to mints, signers, and event types in a single message.Keep-Alive Ping
Send periodic pings to keep the connection alive.Python
Subscribe to Event Types
Subscribe to Specific Mints
Subscribe to Wallet Signers
With Reconnection Logic
Subscription Types
| Type | Description |
|---|---|
trade | Buy/sell swap transactions |
deploy | New token deployments |
migration | Token migrations (e.g. Pump.fun bonding curve graduation) |
parsed | Raw parsed transaction data from DEX parser |
analysis | Bot detection (bundles, snipers) |
alert | High-activity alerts based on volume/trade metrics |
raw | Raw unprocessed transaction data |
Server Messages
| Message Type | When |
|---|---|
welcome | On successful connection |
subscription_confirmed | After subscribing to mints |
signer_subscription_confirmed | After subscribing to signers |
event_subscription_confirmed | After subscribing to event types |
unsubscription_confirmed | After unsubscribing from mints |
signer_unsubscription_confirmed | After unsubscribing from signers |
event_unsubscription_confirmed | After unsubscribing from event types |
pong | Response to ping |
error | On invalid request or auth failure |
