From 7363b3418224b213d85f0fdfb1d1615f1d6aaaf0 Mon Sep 17 00:00:00 2001 From: Anton Sauchyk Date: Mon, 23 Nov 2026 22:01:18 +0100 Subject: [PATCH 1/6] docs: require pumpfun-cli 0.3.7, multi-transaction jobs finish in one run close-atas, drain and collect-creator-fee no longer stop partway; the run-it-again notes and the 20-account workaround are gone. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- SKILL.md | 9 ++++----- references/OPERATIONS.md | 8 ++++---- scripts/check-prereqs.sh | 4 ++-- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5049f2a..e0e1dad 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.3.7 or later**: ```bash uv tool install git+https://github.com/chainstacklabs/pumpfun-cli.git diff --git a/SKILL.md b/SKILL.md index 7a71637..574809e 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.3.7 or later (install via uv from github.com/chainstacklabs/pumpfun-cli)" metadata: author: chainstacklabs - version: "0.3.6" + version: "0.3.7" 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.3.7 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, and before 0.3.7 `close-atas`, `drain` and `collect-creator-fee` stop partway and need another run. ## Pre-Trade Checklist @@ -186,9 +186,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.3.7; otherwise listings are unavailable, ask the user for the mint | ## Full Command Reference diff --git a/references/OPERATIONS.md b/references/OPERATIONS.md index 6b6ef2d..b3b4f72 100644 --- a/references/OPERATIONS.md +++ b/references/OPERATIONS.md @@ -80,7 +80,7 @@ Close volume accumulator account and recover rent SOL. ### `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, or when some coins couldn't be swept (their fees still wait on them). | Option | Type | Default | Description | |---|---|---|---| @@ -137,7 +137,7 @@ Transfer SOL or tokens to another wallet. Amount can be a number or `all`. | `--confirm` | FLAG | Wait for transaction confirmation | ### `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`. | Option | Type | Description | |---|---|---| @@ -147,8 +147,8 @@ Close empty token accounts, up to 20 per run, and recover their rent: `recovered 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 stayed open. - The transfer's own result is `sol_signature`, or `sol_error` if it failed. | Option | Type | Description | diff --git a/scripts/check-prereqs.sh b/scripts/check-prereqs.sh index f6e6fd5..3f5fa9c 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.3.7 "$version" | sort -V | head -1)" = "0.3.7" ]; 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.3.7. Upgrade: uv tool install --force git+https://github.com/chainstacklabs/pumpfun-cli.git" errors=$((errors + 1)) fi fi From 715c3e4368e8e4e132e5fa3d44cf5342318b572d Mon Sep 17 00:00:00 2001 From: Anton Sauchyk Date: Tue, 24 Nov 2026 08:33:21 +0100 Subject: [PATCH 2/6] docs: send failures and the unknown-sweep warning Co-Authored-By: Claude Opus 5.5 --- SKILL.md | 2 ++ references/OPERATIONS.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SKILL.md b/SKILL.md index 574809e..e97f9e7 100644 --- a/SKILL.md +++ b/SKILL.md @@ -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" | The transaction never reached the network | Safe to run the command again | +| "may still land", "could not confirm it" | It may have been sent; the outcome is unknown | Check `pumpfun tx-status ` before sending again: a repeated buy can buy twice | | "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 | diff --git a/references/OPERATIONS.md b/references/OPERATIONS.md index b3b4f72..d45151b 100644 --- a/references/OPERATIONS.md +++ b/references/OPERATIONS.md @@ -80,7 +80,7 @@ Close volume accumulator account and recover rent SOL. ### `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 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, or when some coins couldn't be swept (their fees still wait on them). +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 (whatever reached the vaults was collected). | Option | Type | Default | Description | |---|---|---|---| From 41af60f5827748e12d056d1f5862ffd5899801f7 Mon Sep 17 00:00:00 2001 From: Anton Sauchyk Date: Tue, 24 Nov 2026 08:39:43 +0100 Subject: [PATCH 3/6] docs: unknown outcomes, unconfirmed counts and drain's finalized balance Co-Authored-By: Claude Opus 5.5 --- SKILL.md | 2 +- references/OPERATIONS.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SKILL.md b/SKILL.md index e97f9e7..57d59cd 100644 --- a/SKILL.md +++ b/SKILL.md @@ -180,7 +180,7 @@ These apply to ALL commands: | 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" | The transaction never reached the network | Safe to run the command again | -| "may still land", "could not confirm it" | It may have been sent; the outcome is unknown | Check `pumpfun tx-status ` before sending again: a repeated buy can buy twice | +| "may still land", "could not confirm it" | It may have been sent; the outcome is unknown | Don't send again yet: a repeated buy can buy twice. Check `pumpfun tx-status `; if it landed, report that result. If it isn't found, check again after two minutes, by which time it can no longer land, and send again only if it is still not found | | "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 | diff --git a/references/OPERATIONS.md b/references/OPERATIONS.md index d45151b..b650695 100644 --- a/references/OPERATIONS.md +++ b/references/OPERATIONS.md @@ -80,7 +80,7 @@ Close volume accumulator account and recover rent SOL. ### `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 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 (whatever reached the vaults was 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 (whatever reached the vaults was collected; if that sweep lands later, its fees wait in the vault for the next collect). | Option | Type | Default | Description | |---|---|---|---| @@ -137,7 +137,7 @@ Transfer SOL or tokens to another wallet. Amount can be a number or `all`. | `--confirm` | FLAG | Wait for transaction confirmation | ### `pumpfun wallet close-atas` -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`. +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 that message says the outcome is unknown ("may still land", "could not confirm it"), those accounts may have closed after all. Without `--confirm`, `closed`, `signatures` and `recovered_sol` count batches as sent, so one that then fails on chain is missing from `incomplete`. | Option | Type | Description | |---|---|---| @@ -147,8 +147,8 @@ Close all empty token accounts, 20 per transaction (`signatures` lists them all) 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 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 stayed open. +- It closes every empty account it can and waits for those closes to confirm before sending the SOL. The SOL amount is read from the finalized balance, so rent from closes that aren't finalized yet can stay in the wallet: check `pumpfun wallet balance` afterwards. +- 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 | From 96c03eeaf6d341257a0dfcf8e711c1bfb0e82c23 Mon Sep 17 00:00:00 2001 From: Anton Sauchyk Date: Tue, 24 Nov 2026 08:45:54 +0100 Subject: [PATCH 4/6] docs: name the vault read, wait out the blockhash before resending Co-Authored-By: Claude Opus 5.5 --- SKILL.md | 2 +- references/OPERATIONS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SKILL.md b/SKILL.md index 57d59cd..8b1e893 100644 --- a/SKILL.md +++ b/SKILL.md @@ -180,7 +180,7 @@ These apply to ALL commands: | 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" | The transaction never reached the network | Safe to run the command again | -| "may still land", "could not confirm it" | It may have been sent; the outcome is unknown | Don't send again yet: a repeated buy can buy twice. Check `pumpfun tx-status `; if it landed, report that result. If it isn't found, check again after two minutes, by which time it can no longer land, and send again only if it is still not found | +| "may still land", "could not confirm it" | It may have been sent; the outcome is unknown | Don't send again yet: a repeated buy can buy twice. Check `pumpfun tx-status `; if it landed, report that result. If it isn't found, it can still land until its blockhash expires (usually 60–90 seconds, longer if the network stalls): check again after five minutes, and send again only if it is still not found. If you can't tell, don't resend; tell the user the outcome is unknown | | "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 | diff --git a/references/OPERATIONS.md b/references/OPERATIONS.md index b650695..522f08f 100644 --- a/references/OPERATIONS.md +++ b/references/OPERATIONS.md @@ -80,7 +80,7 @@ Close volume accumulator account and recover rent SOL. ### `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 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 (whatever reached the vaults was collected; if that sweep lands later, its fees wait in the vault for the next collect). +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 | |---|---|---|---| From c83962d4f3d3732f6a40868f4b7cdf7dac2a669d Mon Sep 17 00:00:00 2001 From: Anton Sauchyk Date: Tue, 24 Nov 2026 08:51:36 +0100 Subject: [PATCH 5/6] docs: an unknown outcome is reported, never resent Co-Authored-By: Claude Opus 5.5 --- SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SKILL.md b/SKILL.md index 8b1e893..0965f5e 100644 --- a/SKILL.md +++ b/SKILL.md @@ -180,7 +180,7 @@ These apply to ALL commands: | 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" | The transaction never reached the network | Safe to run the command again | -| "may still land", "could not confirm it" | It may have been sent; the outcome is unknown | Don't send again yet: a repeated buy can buy twice. Check `pumpfun tx-status `; if it landed, report that result. If it isn't found, it can still land until its blockhash expires (usually 60–90 seconds, longer if the network stalls): check again after five minutes, and send again only if it is still not found. If you can't tell, don't resend; tell the user the outcome is unknown | +| "may still land", "could not confirm it" | It may have been sent; the outcome is unknown | 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 | From 75ea9c5dd19e6f775215c03b16811f264e6fa999 Mon Sep 17 00:00:00 2001 From: Anton Sauchyk Date: Tue, 24 Nov 2026 10:01:58 +0100 Subject: [PATCH 6/6] docs: require pumpfun-cli 0.4.0, document --fast and transaction outcomes Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- SKILL.md | 34 +++++++++++++++++----------------- assets/token-lifecycle.md | 6 +++--- references/OPERATIONS.md | 27 ++++++++++++--------------- scripts/check-prereqs.sh | 4 ++-- 5 files changed, 35 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index e0e1dad..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.7 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 0965f5e..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.7 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.7" + 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.7 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, and before 0.3.7 `close-atas`, `drain` and `collect-creator-fee` stop partway and need another run. +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,8 +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" | The transaction never reached the network | Safe to run the command again | -| "may still land", "could not confirm it" | It may have been sent; the outcome is unknown | 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 | +| "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 | @@ -189,7 +189,7 @@ These apply to ALL commands: | "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` | | "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.7; 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 522f08f..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,14 +68,14 @@ 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. @@ -85,7 +85,7 @@ pump.fun's newer trades leave the creator fee on the coin's curve or pool until | 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 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 that message says the outcome is unknown ("may still land", "could not confirm it"), those accounts may have closed after all. Without `--confirm`, `closed`, `signatures` and `recovered_sol` count batches as sent, so one that then fails on chain is missing from `incomplete`. +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 every empty account it can and waits for those closes to confirm before sending the SOL. The SOL amount is read from the finalized balance, so rent from closes that aren't finalized yet can stay in the wallet: check `pumpfun wallet balance` afterwards. +- 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 3f5fa9c..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.7 "$version" | sort -V | head -1)" = "0.3.7" ]; 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.7. 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