> For the complete documentation index, see [llms.txt](https://docs.raybot.app/start/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.raybot.app/start/dev/webhooks-api/example-payloads/solana-sell.md).

# Solana — Sell

Example webhook payload for a followed Solana wallet selling a token for SOL.

`event_type: sell` · `chain: solana`

The wallet from the [Buy](/start/dev/webhooks-api/example-payloads/solana-buy.md) example sells its entire CATALYST position on the pump.fun bonding curve. It bought in for 0.4938 SOL (`position.total_invested`) and got 0.7389 SOL back, so `position.realized_pnl` is +0.2529 SOL. `is_closed: true` with `total_quantity: 0` means nothing is left; `average_cost_basis` and `unrealized_pnl` are `null` for a closed position.

Position values (`total_invested`, `realized_pnl`, `current_price`) are denominated in SOL, not USD.

```json
{
  "id": "SellTxSignature1111111111111111111111111111111111111111111111111111111111111111111111111",
  "event_type": "sell",
  "timestamp": "2026-09-19T15:45:28.534Z",
  "chain": "solana",
  "failed": false,
  "source": "pumpfun",
  "fee_payer": "TraderWa11et11111111111111111111111111111111",
  "followed_wallets": [
    {
      "address": "TraderWa11et11111111111111111111111111111111",
      "wallet_name": "solana trader",
      "funded_at": null,
      "sol_balance": 4.356570793
    }
  ],
  "token_changes": [
    {
      "address": "TraderWa11et11111111111111111111111111111111",
      "direction": "out",
      "mint": "DpwXPLHwupqKCB8MDbuQr2teNQ4uULmqRVVx642bpump",
      "amount_raw": "15377045100290",
      "amount": 15377045.10029,
      "price_usd": 0.0000054288570361967855,
      "value_usd": 83.47977948862467
    },
    {
      "address": "TraderWa11et11111111111111111111111111111111",
      "direction": "in",
      "mint": "So11111111111111111111111111111111111111112",
      "amount_raw": "738903128",
      "amount": 0.738903128,
      "price_usd": 111.79100199779093,
      "value_usd": 82.60272105842196
    }
  ],
  "tokens": {
    "DpwXPLHwupqKCB8MDbuQr2teNQ4uULmqRVVx642bpump": {
      "symbol": "CATALYST",
      "name": "Catalyst Markets",
      "decimals": 6,
      "price_usd": 0.0000054288570361967855,
      "supply": 1000000000,
      "created": "2026-09-19T15:45:27.940Z",
      "image": null,
      "socials": {
        "twitter": null,
        "telegram": null,
        "website": null
      }
    },
    "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
      }
    }
  },
  "position": {
    "side": "sell",
    "is_new_position": false,
    "is_closed": true,
    "total_quantity": 0,
    "average_cost_basis": null,
    "current_price": 4.856255815923417e-8,
    "total_invested": 0.493827159,
    "realized_pnl": 0.25292148799999997,
    "unrealized_pnl": null
  },
  "fees": {
    "priority_fee": 0.000025,
    "jito_tip": 0,
    "total_tip": 0
  },
  "event": {
    "type": "sell",
    "account": "TraderWa11et11111111111111111111111111111111",
    "mintIn": "DpwXPLHwupqKCB8MDbuQr2teNQ4uULmqRVVx642bpump",
    "mintOut": "So11111111111111111111111111111111111111112",
    "valueIn": -15377045.10029,
    "valueOut": 0.746748647,
    "pool": "52zjdMFgKoZFNPEXE84fGzWVkMXLMKnTZXdp4gifL8ve",
    "commission": 0,
    "programId": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.raybot.app/start/dev/webhooks-api/example-payloads/solana-sell.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
