> 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.md).

# Example Payloads

Below are real deliveries captured from live webhooks, one per common `event_type`. Wallet addresses and transaction hashes have been replaced with obvious placeholders; token mints, pools, and program IDs are real, so you can look them up.

Every delivery arrives as an HTTPS POST with the headers described in [Webhooks API → Delivery Payload](/start/dev/webhooks-api.md#delivery-payload). The `X-RayBot-Event` header matches the body's `event_type`.

### Common structure

All payloads share the same top-level shape:

* `id` — the transaction signature (Solana) or transaction hash (EVM).
* `event_type` — `transfer_in`, `transfer_out`, `buy`, `sell`, etc.
* `chain` / `source` — network and the program or platform that produced the event.
* `failed` — `true` if the transaction failed on-chain.
* `fee_payer` — who paid for the transaction.
* `followed_wallets` — which of your tracked addresses triggered this delivery, with the `wallet_name` you assigned.
* `token_changes` — balance deltas per tracked address: `direction` (`in`/`out`), `mint`, raw and decimal `amount`, and USD pricing.
* `tokens` — metadata for every mint referenced in `token_changes` (symbol, decimals, price, supply, socials).
* `position` — present on `buy`/`sell` events only: running position stats for the wallet and token (cost basis, invested total, realized/unrealized PnL).
* `fees` — priority fee and tips paid.
* `event` — the raw parsed event; its shape varies by chain and event type (EVM events include the low-level `transfers` breakdown).

***

### SOLANA — SOL transfer (`transfer_in`)

A plain SOL transfer into a followed wallet, sent via the System Program.

```json
{
  "id": "TransferTxSignature111111111111111111111111111111111111111111111111111111111111111111111",
  "event_type": "transfer_in",
  "timestamp": "2026-07-21T02:51:39.470Z",
  "chain": "solana",
  "failed": false,
  "source": "system program",
  "fee_payer": "SenderWa11et11111111111111111111111111111111",
  "followed_wallets": [
    {
      "address": "Fo11owedWa11et111111111111111111111111111111",
      "wallet_name": "solana transfer",
      "funded_at": "2024-09-29T12:09:29.000Z",
      "sol_balance": 1.326642924
    }
  ],
  "token_changes": [
    {
      "address": "Fo11owedWa11et111111111111111111111111111111",
      "direction": "in",
      "mint": "So11111111111111111111111111111111111111112",
      "amount_raw": "1324658230",
      "amount": 1.32465823,
      "price_usd": 77.91553075291205,
      "value_usd": 103.21144905666304
    }
  ],
  "tokens": {
    "So11111111111111111111111111111111111111112": {
      "symbol": "SOL",
      "name": "Wrapped SOL",
      "decimals": 9,
      "price_usd": 77.91553075291205,
      "supply": 0,
      "created": "2024-07-14T15:35:19.078Z",
      "image": null,
      "socials": {
        "twitter": null,
        "telegram": null,
        "website": null
      }
    }
  },
  "fees": {
    "priority_fee": 0.00065,
    "jito_tip": 0,
    "total_tip": 0
  },
  "event": {
    "type": "transfer",
    "mintIn": "So11111111111111111111111111111111111111112",
    "mintOut": null,
    "from": "SenderWa11et11111111111111111111111111111111",
    "to": "Fo11owedWa11et111111111111111111111111111111",
    "amountIn": 1.32465823,
    "amountOut": null,
    "valueIn": 1.32465823,
    "isNewTo": false
  }
}
```

***

### EVM — Native transfer (`transfer_in`)

A native ETH transfer into a followed wallet on Base. Native currency is reported through the chain's wrapped-token mint (WETH at `0x4200…0006` on Base).

```json
{
  "id": "0x1111111111111111111111111111111111111111111111111111111111111111",
  "event_type": "transfer_in",
  "timestamp": "2026-07-21T02:48:26.465Z",
  "chain": "base",
  "failed": false,
  "source": "eth",
  "fee_payer": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "followed_wallets": [
    {
      "address": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
      "wallet_name": "evm"
    }
  ],
  "token_changes": [
    {
      "address": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
      "direction": "in",
      "mint": "0x4200000000000000000000000000000000000006",
      "amount_raw": "64646121280000000",
      "amount": 0.06464612128,
      "price_usd": 1909.57,
      "value_usd": 123.44629381264959
    }
  ],
  "tokens": {
    "0x4200000000000000000000000000000000000006": {
      "symbol": "WETH",
      "name": "WrappedEther",
      "decimals": 18,
      "price_usd": 1909.57,
      "supply": 174162.18485612498,
      "created": "2025-04-22T20:40:18.373Z",
      "image": null,
      "socials": {
        "twitter": null,
        "telegram": null,
        "website": null
      }
    }
  },
  "fees": {
    "priority_fee": 1.26e-07,
    "jito_tip": 0,
    "total_tip": 0
  },
  "event": {
    "txid": "0x1111111111111111111111111111111111111111111111111111111111111111",
    "account": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "type": "transfer",
    "source": "ETH",
    "mintIn": "0x4200000000000000000000000000000000000006",
    "mintOut": null,
    "from": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "to": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
    "amountIn": "64646121280000000",
    "amountOut": null,
    "transfers": {
      "type": "transfer",
      "mintIn": "0x4200000000000000000000000000000000000006",
      "mintOut": null,
      "from": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "to": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
      "amountIn": "64646121280000000",
      "amountOut": null,
      "chain": "base",
      "standard": "native",
      "signer": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "hasSpoofed": false
    },
    "valueIn": 0.06464612128
  }
}
```

***

### SOLANA — Buy (`buy`)

A followed wallet swaps SOL for Bonk on Orca. Note the two `token_changes` entries (SOL out, token in) and the `position` block with the running position stats.

```json
{
  "id": "BuyTxSignature11111111111111111111111111111111111111111111111111111111111111111111111111",
  "event_type": "buy",
  "timestamp": "2026-07-21T02:52:39.217Z",
  "chain": "solana",
  "failed": false,
  "source": "orca",
  "fee_payer": "BuyerWa11et111111111111111111111111111111111",
  "followed_wallets": [
    {
      "address": "BuyerWa11et111111111111111111111111111111111",
      "wallet_name": "solana buy",
      "funded_at": "2024-12-01T21:56:20.000Z",
      "sol_balance": 3.183205699
    }
  ],
  "token_changes": [
    {
      "address": "BuyerWa11et111111111111111111111111111111111",
      "direction": "in",
      "mint": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
      "amount_raw": "24504241100",
      "amount": 245042.411,
      "price_usd": 3.1796753237508775e-06,
      "value_usd": 0.7791553075291205
    },
    {
      "address": "BuyerWa11et111111111111111111111111111111111",
      "direction": "out",
      "mint": "So11111111111111111111111111111111111111112",
      "amount_raw": "12100000",
      "amount": 0.0121,
      "price_usd": 77.8811019247708,
      "value_usd": 0.9423613332897267
    }
  ],
  "tokens": {
    "So11111111111111111111111111111111111111112": {
      "symbol": "SOL",
      "name": "Wrapped SOL",
      "decimals": 9,
      "price_usd": 77.8811019247708,
      "supply": 0,
      "created": "2024-07-14T15:35:19.078Z",
      "image": null,
      "socials": {
        "twitter": null,
        "telegram": null,
        "website": null
      }
    },
    "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263": {
      "symbol": "Bonk",
      "name": "Bonk",
      "decimals": 5,
      "price_usd": 3.1796753237508775e-06,
      "supply": 87995324597205.25,
      "created": "2025-04-28T18:24:06.620Z",
      "image": "https://arweave.net/hQiPZOsRZXGXBJd_82PhVdlM_hACsT_q6wqwf5cSY7I",
      "socials": {
        "twitter": null,
        "telegram": null,
        "website": "https://bonkcoin.com/"
      }
    }
  },
  "position": {
    "side": "buy",
    "is_new_position": false,
    "is_closed": false,
    "total_quantity": 245042.411,
    "average_cost_basis": 8.922665973460275e-08,
    "current_price": 4.080926219747324e-08,
    "total_invested": 1.1000000000000008,
    "realized_pnl": 0,
    "unrealized_pnl": -0.011864315826843675
  },
  "fees": {
    "priority_fee": 0.001,
    "jito_tip": 0,
    "total_tip": 0.001
  },
  "event": {
    "type": "buy",
    "account": "BuyerWa11et111111111111111111111111111111111",
    "mintIn": "So11111111111111111111111111111111111111112",
    "mintOut": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
    "valueIn": -0.01,
    "valueOut": 245042.411,
    "pool": "5zpyutJu9ee6jFymDGoK7F6S5Kczqtc9FomP3ueKuyA9",
    "programId": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
  }
}
```

***

### EVM — Sell (`sell`)

A followed wallet sells a token for WETH. The `event.transfers.events` array lists every low-level transfer in the transaction — router hops, fee transfers, and the final payout back to the wallet. `position.is_closed: true` means this sale closed the position.

```json
{
  "id": "0x2222222222222222222222222222222222222222222222222222222222222222",
  "event_type": "sell",
  "timestamp": "2026-07-21T02:54:01.789Z",
  "chain": "robinhood",
  "failed": false,
  "source": "robinhood",
  "fee_payer": "0xcccccccccccccccccccccccccccccccccccccccc",
  "followed_wallets": [
    {
      "address": "0xcccccccccccccccccccccccccccccccccccccccc",
      "wallet_name": null
    }
  ],
  "token_changes": [
    {
      "address": "0xcccccccccccccccccccccccccccccccccccccccc",
      "direction": "out",
      "mint": "0x020bfc650a365f8bb26819deaabf3e21291018b4",
      "amount_raw": "118594061088163530000",
      "amount": 118.59406108816353,
      "price_usd": 0.07742139742728546,
      "value_usd": 9.181717936022478
    },
    {
      "address": "0xcccccccccccccccccccccccccccccccccccccccc",
      "direction": "in",
      "mint": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",
      "amount_raw": "4802980167942065",
      "amount": 0.004802980167942065,
      "price_usd": 1911.6710073688632,
      "value_usd": 9.18171793602248
    }
  ],
  "tokens": {
    "0x020bfc650a365f8bb26819deaabf3e21291018b4": {
      "symbol": "CASHCAT",
      "name": "Cash Cat",
      "decimals": 18,
      "price_usd": 0.07742139742728546,
      "supply": 1000000000,
      "created": "2026-07-14T01:42:41.613Z",
      "image": null,
      "socials": {
        "twitter": null,
        "telegram": null,
        "website": null
      }
    },
    "0x0bd7d308f8e1639fab988df18a8011f41eacad73": {
      "symbol": "WETH",
      "name": "WETH",
      "decimals": 18,
      "price_usd": 1911.6710073688632,
      "supply": 18658.492279334856,
      "created": "2026-07-12T16:45:19.175Z",
      "image": null,
      "socials": {
        "twitter": null,
        "telegram": null,
        "website": null
      }
    }
  },
  "position": {
    "side": "sell",
    "is_new_position": true,
    "is_closed": true,
    "total_quantity": 0,
    "average_cost_basis": null,
    "current_price": 4.049933128077552e-05,
    "total_invested": null,
    "realized_pnl": 0,
    "unrealized_pnl": null
  },
  "fees": {
    "priority_fee": 1.331230592e-05,
    "jito_tip": 0,
    "total_tip": 0
  },
  "event": {
    "type": "sell",
    "mintIn": "0x020bfc650a365f8bb26819deaabf3e21291018b4",
    "mintOut": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",
    "amountIn": "118594061088163536392",
    "amountOut": "4802980167942065",
    "txid": "0x2222222222222222222222222222222222222222222222222222222222222222",
    "account": "0xcccccccccccccccccccccccccccccccccccccccc",
    "source": "ROBINHOOD",
    "valueIn": 118.59406108816353,
    "valueOut": 0.004802980167942065
  }
}
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
