diff --git a/README.md b/README.md index 5049f2a..82a11bc 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Works with any agent that supports the [Agent Skills](https://agentskills.io/hom ### 1. Prerequisites - [uv](https://docs.astral.sh/uv/getting-started/installation/) — it handles Python, no separate install needed -- pumpfun-cli **0.3.6 or later**: +- pumpfun-cli **0.4.0 or later**: ```bash uv tool install git+https://github.com/chainstacklabs/pumpfun-cli.git diff --git a/SKILL.md b/SKILL.md index 7a71637..8b3af1d 100644 --- a/SKILL.md +++ b/SKILL.md @@ -8,10 +8,10 @@ description: > covers pump.fun token launch, migration, wallet management, and token discovery. Use when the user wants to trade, swap, buy, sell, launch, or manage pump.fun, letsbonk.fun or StonkFun tokens. -compatibility: "Requires uv and pumpfun-cli 0.3.6 or later (install via uv from github.com/chainstacklabs/pumpfun-cli)" +compatibility: "Requires uv and pumpfun-cli 0.4.0 or later (install via uv from github.com/chainstacklabs/pumpfun-cli)" metadata: author: chainstacklabs - version: "0.3.6" + version: "0.4.0" category: crypto-trading requires: bins: ["uv", "pumpfun"] @@ -35,7 +35,7 @@ uv tool install git+https://github.com/chainstacklabs/pumpfun-cli.git uv tool install --force git+https://github.com/chainstacklabs/pumpfun-cli.git ``` -This installs `pumpfun` globally — available from any directory. `pumpfun --version` should report 0.3.6 or later: from November 25, 2026 pump.fun rejects trades from versions before 0.3.2, before 0.3.3 `collect-creator-fee` misses fees still waiting on your coins, before 0.3.5 selling everything leaves the empty token account and its rent behind, and before 0.3.6 `wallet close-atas` fails outright when one empty account still holds withheld transfer fees. +This installs `pumpfun` globally — available from any directory. `pumpfun --version` should report 0.4.0 or later: from November 25, 2026 pump.fun rejects trades from versions before 0.3.2, before 0.3.3 `collect-creator-fee` misses fees still waiting on your coins, before 0.3.5 selling everything leaves the empty token account and its rent behind, before 0.3.6 `wallet close-atas` fails outright when one empty account still holds withheld transfer fees, before 0.3.7 `close-atas`, `drain` and `collect-creator-fee` stop partway and need another run, and before 0.4.0 commands report a transaction as done once it is sent, whether or not it lands. ## Pre-Trade Checklist @@ -90,7 +90,7 @@ CLI's amounts already count it; tell the user before trading a coin that has one ### Buy tokens ```bash -pumpfun buy [--slippage 15] [--force-amm] [--confirm] [--dry-run] +pumpfun buy [--slippage 15] [--force-amm] [--fast] [--dry-run] ``` - `mint`: token mint address - `amount`: exact amount to spend, in the coin's quote asset (float) @@ -99,7 +99,7 @@ pumpfun buy [--slippage 15] [--force-amm] [--confirm] [--dry-run ### Sell tokens ```bash -pumpfun sell [--slippage 15] [--force-amm] [--confirm] [--dry-run] +pumpfun sell [--slippage 15] [--force-amm] [--fast] [--dry-run] ``` - `amount`: token amount or `all` to sell entire balance - `--dry-run`: simulate without sending @@ -112,7 +112,7 @@ Shows venue, price, quote asset, bonding curve progress, reserves and graduation ### Launch a token ```bash -pumpfun launch --name --ticker --uri [--buy ] [--quote-mint ] [--creator-fee-bps N] [--holder-reward] [--mayhem] [--confirm] +pumpfun launch --name --ticker --uri [--buy ] [--quote-mint ] [--creator-fee-bps N] [--holder-reward] [--mayhem] [--fast] ``` - `--uri` is a metadata JSON (`name`, `symbol`, `description`, `image`) the user already hosts; pump.fun no longer accepts anonymous uploads, so ask the user for one - `--buy` buys in the same transaction as the create, so nobody can buy first @@ -125,7 +125,7 @@ pumpfun launch --name --ticker --uri [--buy 2. **Check slippage**: Default 15% is generous — tighten for large trades 3. **Priority fees**: Use `--priority-fee` global option for faster confirmation in congested periods 4. **Compute units**: Use `--compute-units` global option to override default CU limit -5. **Confirm flag**: Add `--confirm` to wait for on-chain confirmation before returning +5. **Outcomes**: Every sending command waits until its transaction lands, fails or expires, and says which. `--fast` returns once it is sent (`confirmed: false`, amounts are estimates); use it only when the user asks for speed, and check `pumpfun tx-status ` before reporting a `--fast` trade as done ## Common Workflows @@ -133,7 +133,7 @@ pumpfun launch --name --ticker --uri [--buy ```bash pumpfun info # Check status & price pumpfun buy --dry-run # Simulate -pumpfun buy --confirm # Execute +pumpfun buy # Execute ``` ### "Sell all of token Z" @@ -145,27 +145,27 @@ nothing left for `wallet close-atas`. ```bash pumpfun wallet tokens # Verify holding pumpfun sell all --dry-run # Simulate -pumpfun sell all --confirm # Execute +pumpfun sell all # Execute ``` ### "Snipe a graduating token" ```bash pumpfun tokens graduating # Find tokens near graduation pumpfun info # Check specific token -pumpfun buy --confirm # Buy before graduation +pumpfun buy # Buy before graduation ``` ### "Check and collect fees" ```bash -pumpfun collect-creator-fee --confirm # Sweep fees waiting on your coins, then collect SOL fees from pump.fun + PumpSwap -pumpfun collect-creator-fee --quote-mint --confirm # Fees earned in another quote asset -pumpfun claim-cashback --confirm # Claim volume-based rewards +pumpfun collect-creator-fee # Sweep fees waiting on your coins, then collect SOL fees from pump.fun + PumpSwap +pumpfun collect-creator-fee --quote-mint # Fees earned in another quote asset +pumpfun claim-cashback # Claim volume-based rewards ``` ## Global Options These apply to ALL commands: -- `--json` — output as JSON (auto-detected when piping). Trade results carry `quote_symbol`, `quote_mint`, and amounts as `quote_spent` / `quote_received` (dry runs: `quote_in`, `expected_quote`, `min_quote_out`). Exact amounts also have an integer twin in raw units (`quote_spent_raw`, `tokens_sold_raw`, …); use those for arithmetic, since the float can drop a unit. Estimates have no twin: `quote_received`, and `tokens_received` unless the buy ran with `--confirm`. To sell everything, pass `all` rather than an amount +- `--json` — output as JSON (auto-detected when piping). Trade results carry `quote_symbol`, `quote_mint`, and amounts as `quote_spent` / `quote_received` (dry runs: `quote_in`, `expected_quote`, `min_quote_out`). Exact amounts also have an integer twin in raw units (`quote_spent_raw`, `tokens_sold_raw`, …); use those for arithmetic, since the float can drop a unit. Estimates have no twin: `tokens_received` and `quote_received` after `--fast`, or when the landed transaction can't be read back. To sell everything, pass `all` rather than an amount - `--rpc ` — override RPC endpoint - `--keyfile ` — override wallet keystore path - `--priority-fee ` — priority fee override @@ -179,6 +179,8 @@ These apply to ALL commands: | Insufficient balance | Not enough SOL, or not enough of the coin's quote asset | Check `pumpfun wallet balance`, fund wallet | | Slippage exceeded | Price moved beyond tolerance | Increase `--slippage` or retry | | RPC error | Network/endpoint issue | Check `PUMPFUN_RPC`, try different endpoint | +| "nothing was sent", "The RPC refused the transaction", "did not land before its blockhash expired" | The transaction never ran; nothing was spent | Safe to run the command again | +| "whether it landed is unknown", or "may still land" after `--fast` | The RPC stopped answering, or a `--fast` send got no reply; the transaction may still land | Don't send again: a repeated buy can buy twice. Check `pumpfun tx-status `; if it landed, report that result. If it isn't found, tell the user the outcome is unknown instead of resending | | "No pump.fun or LaunchLab coin found" | Invalid mint, or a coin on another launchpad | Verify the mint with `pumpfun info `, or find it by name with `pumpfun tokens search ` | | "asks for more than the … tokens left on the bonding curve" | The buy is bigger than what's left on the curve | Spend less | | "real reserves can't pay anything for these tokens now" | The pump.fun curve can't pay for a sell right now | Nothing was sent; retry later, or after graduation | @@ -186,9 +188,8 @@ These apply to ALL commands: | "CPMM pool is not open yet" | The LaunchLab curve is complete, Raydium hasn't opened the pool | Wait and retry | | "graduated to Raydium AMM v4" | The LaunchLab coin migrated somewhere this CLI can't trade | Don't trade it with this CLI | | "getProgramAccounts" | The RPC won't search LaunchLab pools for a coin priced in something other than SOL | Use an RPC that serves `getProgramAccounts` | -| "more coins hold fees; run it again" from `collect-creator-fee` | One run sweeps the eight coins holding the most fees | Run it again until the message goes away | | "Could not search for fees waiting on your coins" from `collect-creator-fee` (`sweep_warning` in JSON), also on a "vaults hold no creator fees" error | The RPC refused `getProgramAccounts`, so only the vaults were checked; fees still waiting on your coins were missed, even when it reports nothing to collect | Use an RPC that serves `getProgramAccounts` | -| "pump.fun API returned HTTP 403" from `tokens` | pump.fun's listing API refused the request; it is unofficial and changes without notice | Upgrade the CLI if `pumpfun --version` is below 0.3.6; otherwise listings are unavailable, ask the user for the mint | +| "pump.fun API returned HTTP 403" from `tokens` | pump.fun's listing API refused the request; it is unofficial and changes without notice | Upgrade the CLI if `pumpfun --version` is below 0.4.0; otherwise listings are unavailable, ask the user for the mint | ## Full Command Reference diff --git a/assets/token-lifecycle.md b/assets/token-lifecycle.md index ba0f3f3..0bd9ba1 100644 --- a/assets/token-lifecycle.md +++ b/assets/token-lifecycle.md @@ -26,7 +26,7 @@ pumpfun sell # Sell to bonding curve ## Phase 3: Graduation Trigger ``` -pumpfun migrate --confirm +pumpfun migrate ``` - When bonding curve reaches 100%, the token is eligible for migration @@ -49,8 +49,8 @@ pumpfun sell --force-amm # Sell on AMM ## Phase 5: Fee Collection ``` -pumpfun collect-creator-fee --confirm # Sweeps fees waiting on up to 8 of your coins, then collects both vaults; rerun if it says more coins hold fees (add --quote-mint for non-SOL coins) -pumpfun claim-cashback --confirm # Volume-based rewards +pumpfun collect-creator-fee # Sweeps fees waiting on your coins, then collects both vaults (add --quote-mint for non-SOL coins) +pumpfun claim-cashback # Volume-based rewards pumpfun close-volume-acc # Recover rent from volume tracker ``` diff --git a/references/OPERATIONS.md b/references/OPERATIONS.md index 6b6ef2d..a36be76 100644 --- a/references/OPERATIONS.md +++ b/references/OPERATIONS.md @@ -9,7 +9,7 @@ Spend exactly `amount` of the coin's quote asset (SOL for most coins). Routes to |---|---|---|---| | `--slippage` | INTEGER | 15 | Slippage tolerance percent | | `--force-amm` | FLAG | off | Skip the bonding curve, buy in the pool (PumpSwap, or CPMM for LaunchLab coins) | -| `--confirm` | FLAG | off | Wait for transaction confirmation | +| `--fast` | FLAG | off | Send without waiting for the outcome; the result has `confirmed: false` | | `--dry-run` | FLAG | off | Simulate trade without sending transaction | ### `pumpfun sell ` @@ -19,7 +19,7 @@ Sell tokens for the coin's quote asset, routed like `buy`. Amount can be a numbe |---|---|---|---| | `--slippage` | INTEGER | 15 | Slippage tolerance percent | | `--force-amm` | FLAG | off | Skip the bonding curve, sell in the pool (PumpSwap, or CPMM for LaunchLab coins) | -| `--confirm` | FLAG | off | Wait for transaction confirmation | +| `--fast` | FLAG | off | Send without waiting for the outcome; the result has `confirmed: false` | | `--dry-run` | FLAG | off | Simulate trade without sending transaction | ### `pumpfun info ` @@ -47,7 +47,7 @@ Launch a new token on pump.fun (create_v2 + extend_account). With `--buy`, the o | `--holder-reward` | FLAG | No | Pay the creator fee to holders instead of the creator | | `--mayhem` | FLAG | No | Enable mayhem mode (SOL coins only) | | `--slippage` | INTEGER | No | Slippage for the opening buy (default 15) | -| `--confirm` | FLAG | No | Wait for transaction confirmation | +| `--fast` | FLAG | No | Send without waiting for the outcome; the result has `confirmed: false` | \* Without `--uri` the CLI attempts pump.fun's upload, which is currently refused. @@ -58,7 +58,7 @@ Trigger migration of a pump.fun coin from bonding curve to PumpSwap AMM. Only wo | Option | Type | Default | Description | |---|---|---|---| -| `--confirm` | FLAG | off | Wait for transaction confirmation | +| `--fast` | FLAG | off | Send without waiting for the outcome; the result has `confirmed: false` | ## Rewards & Fees @@ -68,24 +68,24 @@ Claim volume-based cashback rewards in one quote asset. | Option | Type | Default | Description | |---|---|---|---| | `--quote-mint` | TEXT | SOL | Quote asset the cashback accrued in | -| `--confirm` | FLAG | off | Wait for transaction confirmation | +| `--fast` | FLAG | off | Send without waiting for the outcome; the result has `confirmed: false` | ### `pumpfun close-volume-acc` Close volume accumulator account and recover rent SOL. | Option | Type | Default | Description | |---|---|---|---| -| `--confirm` | FLAG | off | Wait for transaction confirmation | +| `--fast` | FLAG | off | Send without waiting for the outcome; the result has `confirmed: false` | ### `pumpfun collect-creator-fee` Collect creator fees from pump.fun and PumpSwap vaults. Vaults are per quote asset, so fees earned in USDC need a separate run. -pump.fun's newer trades leave the creator fee on the coin's curve or pool until it is swept into the vault, so the command first sweeps the coins holding the most fees (eight per run), found with `getProgramAccounts`. JSON output adds `coins_swept`, `coins_still_waiting` when more remain (run it again), and `sweep_warning` when the RPC refused the search and only the vaults were collected. +pump.fun's newer trades leave the creator fee on the coin's curve or pool until it is swept into the vault, so the command first sweeps every coin holding fees, found with `getProgramAccounts`: the eight largest in the collect transaction, the rest in transactions sent and confirmed before it. JSON output adds `coins_swept`, and `sweep_warning` when the RPC refused the search and only the vaults were collected, when some coins couldn't be swept (their fees still wait on them), or when a sweep's outcome is unknown (the collect takes what the vaults held when the CLI read them; if that sweep lands after the read, check it with `pumpfun tx-status`, and once it has landed its fees wait in the vault for the next collect). | Option | Type | Default | Description | |---|---|---|---| | `--quote-mint` | TEXT | SOL | Quote asset to collect | -| `--confirm` | FLAG | off | Wait for transaction confirmation | +| `--fast` | FLAG | off | Send without waiting for the outcome; the result has `confirmed: false` | ## Transaction Status @@ -134,26 +134,23 @@ Transfer SOL or tokens to another wallet. Amount can be a number or `all`. | Option | Type | Description | |---|---|---| | `--mint` | TEXT | Token mint address (omit for SOL transfer) | -| `--confirm` | FLAG | Wait for transaction confirmation | +| `--fast` | FLAG | Send without waiting for the outcome; the result has `confirmed: false` | ### `pumpfun wallet close-atas` -Close empty token accounts, up to 20 per run, and recover their rent: `recovered_sol` is what the closed accounts held. Accounts the wallet can't close (frozen, or another wallet holds the close authority) are listed in `skipped` and left as they are. If the RPC can't list the wallet's accounts, it fails with an error rather than reporting nothing to close. +Close all empty token accounts, 20 per transaction (`signatures` lists them all), and recover their rent: `recovered_sol` is what the closed accounts held. Accounts the wallet can't close (frozen, or another wallet holds the close authority) are listed in `skipped` and left as they are. If the RPC can't list the wallet's accounts, it fails with an error rather than reporting nothing to close. If a later batch fails, the result still reports what closed, with the failure in `incomplete`; when it says a batch's outcome is unknown, up to that batch's accounts may have closed after all. With `--fast`, `closed`, `signatures` and `recovered_sol` count batches as sent, so one that then fails on chain is missing from `incomplete`. | Option | Type | Description | |---|---|---| -| `--confirm` | FLAG | Wait for transaction confirmation | +| `--fast` | FLAG | Send without waiting for the outcome; the result has `confirmed: false` | ### `pumpfun wallet drain ` Close empty ATAs, then transfer all remaining SOL to recipient. - `ata_skipped` lists empty accounts the wallet can't close (frozen, or another wallet's close authority). -- It closes at most 20 empty accounts. Closable accounts past that stay open and are not in `ata_skipped`, so with more than 20, run `close-atas` until it closes none before draining. -- If the close step fails (a failed transaction, or the RPC couldn't list the accounts), `ata_error` says why and the SOL transfer is still attempted. +- It closes every empty account it can and waits for those closes to land before sending the SOL, so their rent goes with it. +- If the close step fails (a failed transaction, or the RPC couldn't list the accounts), `ata_error` says why and the SOL transfer is still attempted. If only a later batch failed, `ata_incomplete` says how many weren't confirmed closed; when its outcome is unknown, they may have closed after all. - The transfer's own result is `sol_signature`, or `sol_error` if it failed. - -| Option | Type | Description | -|---|---|---| -| `--confirm` | FLAG | Wait for transaction confirmation | +- It always waits for each transaction's outcome; it has no `--fast`. ## Token Discovery diff --git a/scripts/check-prereqs.sh b/scripts/check-prereqs.sh index f6e6fd5..d8f6c7b 100755 --- a/scripts/check-prereqs.sh +++ b/scripts/check-prereqs.sh @@ -10,10 +10,10 @@ if ! command -v pumpfun &>/dev/null && ! uv run pumpfun --version &>/dev/null 2> errors=$((errors + 1)) else version=$( (pumpfun --version 2>/dev/null || uv run pumpfun --version 2>/dev/null) | awk '{print $NF}') - if [ "$(printf '%s\n' 0.3.6 "$version" | sort -V | head -1)" = "0.3.6" ]; then + if [ "$(printf '%s\n' 0.4.0 "$version" | sort -V | head -1)" = "0.4.0" ]; then echo "OK: pumpfun CLI $version available" else - echo "ERROR: pumpfun CLI $version is older than 0.3.6. Upgrade: uv tool install --force git+https://github.com/chainstacklabs/pumpfun-cli.git" + echo "ERROR: pumpfun CLI $version is older than 0.4.0. Upgrade: uv tool install --force git+https://github.com/chainstacklabs/pumpfun-cli.git" errors=$((errors + 1)) fi fi