For the complete documentation index, see llms.txt. This page is also available as Markdown.

Solana — Buy

Example webhook payload for a followed Solana wallet buying a token with SOL.

event_type: buy · chain: solana

A followed wallet buys CATALYST on the pump.fun bonding curve. Note the two token_changes entries (SOL out, token in) and the position block with the running position stats.

This is the wallet's first buy of the token (is_new_position: true), so total_invested equals the 0.4938 SOL that went into the curve (event.valueIn) and average_cost_basis equals current_price. The SOL out in token_changes is slightly higher (0.5016) because it is the wallet's full balance change, including pump.fun and network fees. Position values are denominated in SOL, not USD.

The same wallet later closes this position in the Sell example.

{
  "id": "BuyTxSignature11111111111111111111111111111111111111111111111111111111111111111111111111",
  "event_type": "buy",
  "timestamp": "2026-09-19T15:45:23.029Z",
  "chain": "solana",
  "failed": false,
  "source": "pumpfun",
  "fee_payer": "TraderWa11et11111111111111111111111111111111",
  "followed_wallets": [
    {
      "address": "TraderWa11et11111111111111111111111111111111",
      "wallet_name": "solana trader",
      "funded_at": null,
      "sol_balance": 3.617772665
    }
  ],
  "token_changes": [
    {
      "address": "TraderWa11et11111111111111111111111111111111",
      "direction": "in",
      "mint": "DpwXPLHwupqKCB8MDbuQr2teNQ4uULmqRVVx642bpump",
      "amount_raw": "15377045100290",
      "amount": 15377045.10029,
      "price_usd": 3.5933377144910904e-06,
      "value_usd": 55.25491609630249
    },
    {
      "address": "TraderWa11et11111111111111111111111111111111",
      "direction": "out",
      "mint": "So11111111111111111111111111111111111111112",
      "amount_raw": "501618840",
      "amount": 0.50161884,
      "price_usd": 111.79100199779093,
      "value_usd": 56.07647274456957
    }
  ],
  "tokens": {
    "So11111111111111111111111111111111111111112": {
      "symbol": "SOL",
      "name": "Wrapped SOL",
      "decimals": 9,
      "price_usd": 111.79100199779093,
      "supply": 0,
      "created": "2024-07-14T15:35:19.078Z",
      "image": null,
      "socials": {
        "twitter": null,
        "telegram": null,
        "website": null
      }
    },
    "DpwXPLHwupqKCB8MDbuQr2teNQ4uULmqRVVx642bpump": {
      "symbol": "CATALYST",
      "name": "Catalyst Markets",
      "decimals": 6,
      "price_usd": 3.5933377144910904e-06,
      "supply": 1000000000,
      "created": "2026-09-19T15:45:27.940Z",
      "image": null,
      "socials": {
        "twitter": null,
        "telegram": null,
        "website": null
      }
    }
  },
  "position": {
    "side": "buy",
    "is_new_position": true,
    "is_closed": false,
    "total_quantity": 15377045.10029,
    "average_cost_basis": 3.211456790165015e-08,
    "current_price": 3.211456790165015e-08,
    "total_invested": 0.493827159,
    "realized_pnl": 0,
    "unrealized_pnl": 0
  },
  "fees": {
    "priority_fee": 0.000105,
    "jito_tip": 0,
    "total_tip": 0
  },
  "event": {
    "type": "buy",
    "account": "TraderWa11et11111111111111111111111111111111",
    "mintIn": "So11111111111111111111111111111111111111112",
    "mintOut": "DpwXPLHwupqKCB8MDbuQr2teNQ4uULmqRVVx642bpump",
    "valueIn": -0.493827159,
    "valueOut": 15377045.10029,
    "pool": "52zjdMFgKoZFNPEXE84fGzWVkMXLMKnTZXdp4gifL8ve",
    "commission": 0,
    "programId": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
  }
}

Last updated