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