blokboard/ Open app

Node reference

PumpSwap swap

Buy or sell in a graduated pool

SolanaPumpSwap

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#

  1. Use Get PumpSwap pool to inspect the pool and its two mints.
  2. Choose the trading wallet, pool, Buy or Sell, and the amount unit.
  3. 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#

SettingDefaultWhat it does
RPC URL{{global.chains.solana.rpcUrl}}Configured for Solana in workspace RPC settings.
CommitmentconfirmedHow 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 MintSo11111111111111111111111111111111111111112Mint of the quote asset used by the coin or pool.
TradebuyBuy the base token with the quote asset, or sell it for the quote asset.
Amount inquoteSwitch 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 (%)1Maximum tolerated execution change in percent; 0.5 means half a percent.
Track Volume RewardstrueInclude PumpSwap volume tracking in the trade instruction.
Priority Fee (SOL)0.0001Total priority fee across 250,000 compute units.
Signing LayerautoSigning provider to use. Auto selects an available provider for this run.
Skip PreflightfalseSkip the RPC preflight check before sending. Keep this off while learning.
ConfirmfalseWait for transaction confirmation after submission.
On failurestopChoose whether a failed execution stops the workflow or only ends this path.
Retry attempts0How 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#

PortValueDescription
inanyPayload containing or accompanying a PumpSwap pool.

Outputs#

PortValueDescription
outobjectSubmitted PumpSwap AMM buy or sell with calculated limits.

out fields#

FieldType
sidestring
poolstring
baseAmountRawstring
quoteAmountRawstring
limitAmountRawstring
transactionSignaturestring