Node reference
Swap coin
Buy or sell on the bonding curve
Swap coin trades through a Pump bonding curve. Side and Amount Unit jointly describe what the entered amount means.
Try it step by step#
- Read the coin with Get Pump coin to verify the mint and current venue.
- Choose Buy or Sell, then choose whether Amount is measured in the quote asset or the token.
- 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#
| 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. |
| Mint Address | — | Token mint identifying the coin. This is not a wallet or pool address. |
| 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. |
| Priority Fee (SOL) | 0.0001 | Total priority fee across 200,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.
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#
| Port | Value | Description |
|---|---|---|
in | any | Payload containing or accompanying a Pump mint. |
Outputs#
| Port | Value | Description |
|---|---|---|
out | object | Submitted Pump bonding-curve buy or sell with calculated limits. |
out fields#
| Field | Type |
|---|---|
side | string |
mint | string |
tokenAmountRaw | string |
quoteAmountRaw | string |
limitAmountRaw | string |
transactionSignature | string |