Skip to content

Subscribe

After connecting, send a subscribe message to start receiving transactions.

{"type": "subscribe", "filters": {"platform": ["pump_fun"], "eventType": ["create"]}}
FieldRequiredExample
platformYes"pump_fun", "pump_swap"
eventTypeNo"trade", "create", "migrate", "liquidity"
mintNo"5UUH9..."
poolNo"8sLbN..." (Pump Swap only)
userNo"9WzDX..."
  • AND between fields — must match all specified fields
  • OR within arrays — matches any value in the array
{
"platform": ["pump_fun", "pump_swap"],
"mint": ["TokenA", "TokenB"]
}

Matches: (pump_fun OR pump_swap) AND (TokenA OR TokenB)

You will receive messages for all trades that happen on both platforms but only on tokens TokenA or TokenB.

All Pump Fun token launches:

{"type": "subscribe", "filters": {"platform": ["pump_fun"], "eventType": ["create"]}}

Track 3 tokens on both platforms:

{"type": "subscribe", "filters": {"platform": ["pump_fun", "pump_swap"], "mint": ["Token1...", "Token2...", "Token3..."]}}

Watch 2 wallets on Pump Fun:

{"type": "subscribe", "filters": {"platform": ["pump_fun"], "user": ["Wallet1...", "Wallet2..."]}}
{
"type": "subscriptionUpdated",
"activeFilter": {"platform": ["pump_fun"]},
"message": "Subscription active with 1 filter field(s)"
}

All messages have the same top-level structure:

  • type: Always "transaction"
  • data: Object containing transaction details with:
    • Base fields (always present):
      • platform: Name of the DEX platform (string, e.g., "pump_fun")
      • signature: Transaction signature (string)
      • slot: Solana slot number (number)
      • instructionIndex: Index of the instruction (string, e.g., "1", "3.2")
      • instruction: The instruction name (string, e.g., "buy")
      • eventType: Type of event (string, e.g., "trade")
      • user: Wallet address that initiated the transaction (string)
    • Additional fields vary by event type and platform (see examples below)
  • timestamp: Unix timestamp in milliseconds

Select a platform and event type to see the complete message structure with all fields:

{
"type": "transaction",
"data": {
"platform": "pump_fun",
"signature": "5Z3k...",
"slot": 298765432,
"instructionIndex": "0",
"instruction": "create",
"eventType": "create",
"user": "9WzDX...",
"mint": "5UUH9...",
"tokenName": "My Token",
"symbol": "TOKEN",
"uri": "https://...",
"isMayhemMode": false,
"isCashback": false
},
"timestamp": 1734278400000
}

Send a new subscribe message to replace your current filters.

  • Max 100 items per array
  • Max 5 connections per API key