Node reference
PumpSwap swap
Buy or sell in a graduated pool
PumpSwap swap trades through a PumpSwap pool. Verify the base/quote pair first, then choose the side and amount unit explicitly.
Try it step by step#
- Use Get PumpSwap pool to inspect the pool and its two mints.
- Choose the trading wallet, pool, Buy or Sell, and the amount unit.
- Review the amount and slippage, then inspect baseAmountRaw, quoteAmountRaw, limitAmountRaw, and transactionSignature after execution.
What to expect#
The output identifies the pool and submitted trade amounts. A quote-denominated input is different from a base-token input even when the same number is entered.
Things to check#
- Do not copy an amount from a different pool without checking the mint and decimal scale.
- Keep enough SOL available for transaction fees even when the quote asset is another token.
- A lost response can leave submission status uncertain. Check the transaction before repeating the trade.
Keep learning#
Network setup: This node uses solana. See connections for RPC setup and Test mode for network selection.
Parameters#
| Setting | Default | What it does |
|---|---|---|
| RPC URL | {{global.chains.solana.rpcUrl}} | Configured for Solana in workspace RPC settings. |
| Commitment | confirmed | How far a Solana block must be confirmed before its data is used. |
| Wallet | {{global.main_wallet}} | Wallet that owns the assets or position and signs this operation. |
| Base Mint | — | Mint of the pool’s base token, whose price is expressed in the quote asset. |
| Pool Override | — | Address identifying the pool for this operation. |
| Quote Mint | So11111111111111111111111111111111111111112 | Mint of the quote asset used by the coin or pool. |
| Trade | buy | Buy the base token with the quote asset, or sell it for the quote asset. |
| Amount in | quote | Switch whether the decimal amount is denominated in the quote asset or token. |
| Amount | — | Enter a decimal amount, for example 10 SOL or 100000 tokens. |
| Slippage (%) | 1 | Maximum tolerated execution change in percent; 0.5 means half a percent. |
| Track Volume Rewards | true | Include PumpSwap volume tracking in the trade instruction. |
| Priority Fee (SOL) | 0.0001 | Total priority fee across 250,000 compute units. |
| Signing Layer | auto | Signing provider to use. Auto selects an available provider for this run. |
| Skip Preflight | false | Skip the RPC preflight check before sending. Keep this off while learning. |
| Confirm | false | Wait for transaction confirmation after submission. |
| On failure | stop | Choose whether a failed execution stops the workflow or only ends this path. |
| Retry attempts | 0 | How many additional attempts to make after the first failure. |
RPC URL: Available under More options.
Commitment: Choices: Processed (processed), Confirmed (confirmed), Finalized (finalized). Available under More options.
Pool Override: Available under More options.
Quote Mint: Available under More options.
Trade: Choices: Buy (buy), Sell (sell).
Amount in: Choices: SOL / Quote (quote), Token (token).
Track Volume Rewards: Available under More options.
Signing Layer: Choices: Auto (auto), Application (executable), Extension (extension), Web Vault (web). Available under More options.
Skip Preflight: Available under More options.
Confirm: Available under More options.
On failure: Choices: Stop workflow (stop), Continue (continue). Available under More options.
Retry attempts: Available under More options. Limits: minimum 0.
Inputs#
| Port | Value | Description |
|---|---|---|
in | any | Payload containing or accompanying a PumpSwap pool. |
Outputs#
| Port | Value | Description |
|---|---|---|
out | object | Submitted PumpSwap AMM buy or sell with calculated limits. |
out fields#
| Field | Type |
|---|---|
side | string |
pool | string |
baseAmountRaw | string |
quoteAmountRaw | string |
limitAmountRaw | string |
transactionSignature | string |