Index of every page on this site: llms.txt
All skills
Run it yourself

Use for research on pump.fun public data: bonding-curve mechanics, token lifecycle, creator activity, migrations, public event monitoring, and historical on-chain analysis. Default to read-only workflows. Do not automate signing or broadcasting.

Use this Skill: https://skilld.dev/gh/vo1ganin/crypto-claude-skills/pumpfun

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesstreaming.md

≈1.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

PumpPortal Data API — Real-time Streaming

Endpoint

wss://pumpportal.fun/api/data

No authentication. Free.

🚨 CRITICAL: one connection for everything

You MUST use a single WebSocket connection for all subscriptions. Opening multiple connections triggers an hourly ban. Send new subscribe* messages on the same open socket.

Correct:

ws = connect(wss://pumpportal.fun/api/data)
ws.send(subscribeNewToken)
ws.send(subscribeTokenTrade {keys: [...]})
ws.send(subscribeAccountTrade {keys: [...]})
# All on same ws — good

Wrong:

ws1 = connect(...); ws1.send(subscribeNewToken)
ws2 = connect(...); ws2.send(subscribeTokenTrade ...)
# Multiple connections — BAN

On disconnect: reconnect with one new socket, resend all subscribes. Track active subscriptions in memory so you can resubscribe.

Subscribe methods

subscribeNewToken

Streams every new token creation (all create / create_v2 events).

{"method": "subscribeNewToken"}

subscribeTokenTrade

Streams trades (buys + sells) on specific token mints.

{"method": "subscribeTokenTrade", "keys": ["mint1", "mint2"]}

You can add more mints dynamically by sending additional subscribe messages with more keys.

subscribeAccountTrade

Streams trades initiated by specific wallets. Primary use: account-activity monitoring.

{"method": "subscribeAccountTrade", "keys": ["wallet1", "wallet2"]}

subscribeMigration

Streams graduation events — when tokens complete bonding and migrate to PumpSwap.

{"method": "subscribeMigration"}

Unsubscribe

Same payload, unsubscribe prefix:

{"method": "unsubscribeNewToken"}
{"method": "unsubscribeTokenTrade", "keys": ["mint1"]}
{"method": "unsubscribeAccountTrade", "keys": ["wallet1"]}

Message format

Messages arrive as JSON. Fields vary by event type. Typical shapes:

New token event

{
  "txType": "create",
  "signature": "...",
  "mint": "<mint_address>",
  "traderPublicKey": "<creator>",
  "name": "...",
  "symbol": "...",
  "uri": "<metadata URI>",
  "initialBuy": <bool or amount>,
  "solAmount": 0.5,
  "tokenAmount": ...,
  "newTokenBalance": ...,
  "marketCapSol": ...,
  "timestamp": 1712345678
}

Token/account trade event

{
  "txType": "buy",    // or "sell"
  "signature": "...",
  "mint": "<mint>",
  "traderPublicKey": "<wallet>",
  "solAmount": 0.1,
  "tokenAmount": 12345.67,
  "newTokenBalance": 8765.43,
  "marketCapSol": 45.6,
  "timestamp": ...
}

Migration event

{
  "txType": "migration",
  "mint": "<mint>",
  "signature": "...",
  "pool": "pump-amm",     // or "raydium" depending on era
  "timestamp": ...
}

Exact field names may drift — always log full event once and inspect to confirm.

Pattern: robust WS client

import asyncio, json, websockets

SUBSCRIPTIONS = [
    {"method": "subscribeNewToken"},
    {"method": "subscribeAccountTrade", "keys": ["WALLET1", "WALLET2"]},
    {"method": "subscribeMigration"},
]

async def run():
    while True:
        try:
            async with websockets.connect("wss://pumpportal.fun/api/data") as ws:
                # Re-subscribe all on reconnect
                for sub in SUBSCRIPTIONS:
                    await ws.send(json.dumps(sub))
                async for raw in ws:
                    msg = json.loads(raw)
                    handle(msg)
        except Exception as e:
            print(f"WS error: {e}, reconnecting in 3s")
            await asyncio.sleep(3)

def handle(msg):
    tx_type = msg.get("txType")
    if tx_type == "create":
        print(f"NEW: {msg['name']} [{msg['mint'][:8]}]")
    elif tx_type == "buy":
        print(f"BUY: {msg['traderPublicKey'][:6]} → {msg['solAmount']} SOL on {msg['mint'][:8]}")
    # ...

asyncio.run(run())

See examples/ws_monitor.py for a more complete version.

Rate limits

Not published officially. Empirical: free tier supports hundreds of subscribed keys simultaneously on one connection. Beyond that, filter server-side with fewer keys or aggregate on your side.

Alternative streams

  • Direct RPC WebSocket subscription (Helius Enhanced WebSockets or QuickNode) — filter by programId=6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P, parse raw tx. More effort, no third party.
  • LaserStream gRPC (Helius) — lowest latency for serious trading bots
  • Yellowstone Geyser gRPC (QuickNode dedicated nodes) — equivalent to LaserStream

PumpPortal is the simplest. For sub-100ms-latency sniping, LaserStream/Yellowstone is better but requires more engineering.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill provides tools for analyzing pump.fun token data and bonding curves using public APIs and blockchain RPCs. It adheres to safety best practices by strictly forbidding the use of private keys and focusing on read-only research workflows.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 8100600. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 3 months ago
compatibility
{
  "tools": [
    "Bash",
    "Write",
    "Read"
  ]
}

README badge

README badge for vo1ganin/crypto-claude-skills/pumpfun