> ## Documentation Index
> Fetch the complete documentation index at: https://docs.launchblitz.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bonk.fun

> Create and sell methods for `raydium_launchpad`, including both Bonk.fun sub-platforms.

Bonk.fun requests use `platform: "raydium_launchpad"` plus a `sub_platform`.

## Sub-platforms

| Value      | Meaning                   |
| ---------- | ------------------------- |
| `BONKWSOL` | Bonk.fun with WSOL quote. |
| `BONKUSD1` | Bonk.fun with USD1 quote. |

## Methods

| Type                     | Purpose                                        |
| ------------------------ | ---------------------------------------------- |
| `create_with_image_url`  | Create a Bonk.fun launch from an image URL.    |
| `create_with_image_blob` | Create a Bonk.fun launch from raw image bytes. |
| `sell`                   | Sell an existing Bonk.fun position.            |

## Create

Shared fields:

* `transaction_data`
* `launch_data`
* `buy_config`
* `image_url` or `image_blob`
* `sub_platform`

Optional Bonk.fun-specific fields:

* `supply_transfer`
* `dev_sell_delay`
* `mint_privkey`
* `is_bonkers`

Example:

```json theme={null}
{
  "platform": "raydium_launchpad",
  "type": "create_with_image_url",
  "sub_platform": "BONKWSOL",
  "transaction_data": {
    "rpcs": ["standard"],
    "identifier": "bonk_create_1",
    "priority_fee": 1000000,
    "payer_wallet": "SOLANA_WALLET"
  },
  "launch_data": {
    "name": "Bonk Coin",
    "symbol": "BONKX",
    "description": "Example Bonk.fun launch",
    "twitter": "https://x.com/example/status/1",
    "attached_referral": null,
    "website": null,
    "generated": false,
    "multi_deploy_count": 1
  },
  "image_url": "https://example.com/image.png",
  "buy_config": {
    "type": "standard",
    "buy_amount": 50000000,
    "min_tokens_out": 0
  },
  "is_bonkers": false
}
```

## Sell

| Field            | Type                   |
| ---------------- | ---------------------- |
| `rpcs`           | `string[]`             |
| `identifier`     | `string`               |
| `mint`           | `string`               |
| `sell_amt`       | `number`               |
| `priority_fee`   | `number`               |
| `selling_wallet` | `string`               |
| `creator`        | `string`               |
| `min_out`        | `number`               |
| `sub_platform`   | `BONKWSOL \| BONKUSD1` |
| `is_bonkers`     | `boolean`              |

Example:

```json theme={null}
{
  "platform": "raydium_launchpad",
  "type": "sell",
  "rpcs": ["standard"],
  "identifier": "bonk_sell_1",
  "mint": "TOKEN_MINT",
  "sell_amt": 250000000,
  "priority_fee": 1000000,
  "selling_wallet": "SOLANA_WALLET",
  "creator": "CREATOR_WALLET",
  "min_out": 0,
  "sub_platform": "BONKUSD1",
  "is_bonkers": false
}
```

## Notes

* `launch_data.multi_deploy_count` is only useful on the WSOL Bonk.fun path.
* The same shared `buy_config` and `supply_transfer` formats from [generic transactions](/api/generic-transactions) apply here.
