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.
Use platform: "pump_swap" for PumpSwap trading.
Methods
| Type | Purpose |
|---|
buy | Buy through the canonical PumpSwap pool for a mint. |
sell | Sell through the canonical PumpSwap pool for a mint. |
Buy
Required fields:
| Field | Type | Notes |
|---|
rpcs | string[] | Solana RPC lanes. |
identifier | string | Request id. |
mint | string | Token mint. |
buy_amt | number | Quote amount in base units. |
min_tokens_out | number | 0 is coerced to 1 by the backend. |
priority_fee | number | Lamports. |
buying_wallet | string | Buyer wallet. |
creator | string | Creator wallet, required by the instruction builder. |
is_mayhem_mode | boolean | Optional. |
cashback | boolean | Optional. |
Example:
{
"platform": "pump_swap",
"type": "buy",
"rpcs": ["standard"],
"identifier": "pumpswap_buy_1",
"mint": "TOKEN_MINT",
"buy_amt": 50000000,
"min_tokens_out": 1,
"priority_fee": 1000000,
"buying_wallet": "SOLANA_WALLET",
"creator": "CREATOR_WALLET",
"is_mayhem_mode": false,
"cashback": false
}
Sell
| Field | Type |
|---|
rpcs | string[] |
identifier | string |
mint | string |
sell_amt | number |
priority_fee | number |
selling_wallet | string |
min_out | number |
creator | string |
is_mayhem_mode | boolean |
cashback | boolean |
Example:
{
"platform": "pump_swap",
"type": "sell",
"rpcs": ["standard"],
"identifier": "pumpswap_sell_1",
"mint": "TOKEN_MINT",
"sell_amt": 250000000,
"priority_fee": 1000000,
"selling_wallet": "SOLANA_WALLET",
"min_out": 0,
"creator": "CREATOR_WALLET",
"is_mayhem_mode": false,
"cashback": false
}