prepare_buy
Build an unsigned buy transaction for a pump.fun token within configured trade and spend caps, returning base64 for you to sign and broadcast in your own wallet.
Instructions
Build an UNSIGNED buy transaction for a pump.fun token, sized within the configured per-trade and spend-cap limits. This server never holds a private key and never signs or broadcasts anything — it returns a base64-encoded transaction for you to review and sign yourself in your own wallet (e.g. paste into a wallet that supports raw transaction signing, or use the accompanying CLI/script). Refuses to build the transaction unless get_risk_score has been called recently for this mint and it passed the configured threshold, and unless the requested USD size is within [MIN_TRADE_USD, MAX_TRADE_USD] and the daily/weekly spend caps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | Token mint address to buy. | |
| usdAmount | Yes | USD size for this buy. Must be between $10 and $20. | |
| slippagePct | No | Override default slippage tolerance (%). |