blokboard/ Open app

Node reference

Swap coin

Buy or sell on the bonding curve

SolanaPump.fun

Swap coin trades through a Pump bonding curve. Side and Amount Unit jointly describe what the entered amount means.

Try it step by step#

  1. Read the coin with Get Pump coin to verify the mint and current venue.
  2. Choose Buy or Sell, then choose whether Amount is measured in the quote asset or the token.
  3. Review the amount, slippage, fees, and signing wallet before executing. Inspect the resulting raw amounts and transaction signature.

What to expect#

The result includes tokenAmountRaw, quoteAmountRaw, and limitAmountRaw. These are smallest-unit amounts, not already formatted display amounts.

Things to check#

  • Buying with Amount Unit: quote describes the quote-side amount; choosing token describes a token-side amount. Check both selectors.
  • A slippage limit bounds the tolerated execution change; it does not fix the market price.
  • Use PumpSwap for the corresponding pool after graduation rather than assuming the bonding curve remains the execution venue.

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.
Mint Address—Token mint identifying the coin. This is not a wallet or pool address.
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.
Priority Fee (SOL)0.0001Total priority fee across 200,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.

Trade: Choices: Buy (buy), Sell (sell).

Amount in: Choices: SOL / Quote (quote), Token (token).

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 Pump mint.

Outputs#

PortValueDescription
outobjectSubmitted Pump bonding-curve buy or sell with calculated limits.

out fields#

FieldType
sidestring
mintstring
tokenAmountRawstring
quoteAmountRawstring
limitAmountRawstring
transactionSignaturestring