blokboard/ Open app

Node reference

Swap on Raydium

Send an audited CLMM/CPMM exact-input route

SolanaRaydium

Swap on Raydium obtains a fresh exact-input route, checks the returned transaction, signs it, and submits it. Use Quote Raydium route first to learn the pair and amount units.

Try it step by step#

  1. Choose the wallet and the input/output mints. Enter Amount in input-token units.
  2. Review decimal lookup, slippage, and SOL wrapping settings for this pair.
  3. Execute only after reviewing the setup, then inspect transactionSignature and validation alongside the returned amounts.

What to expect#

The result includes the mint pair, raw amounts, transaction signature, and validation details. An earlier Quote node does not lock the swap to that old price.

Things to check#

  • An explicit input or output token account must be the wallet’s associated token account for that mint.
  • Wrap and unwrap settings matter when using SOL.
  • If the transaction is rejected by verification, inspect the reason instead of assuming that every externally supplied route is acceptable.

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.
Input Mint—Mint of the token supplied to the swap route.
Output Mint—Mint of the token received from the swap route.
Amount—Decimal amount in input-token units, before conversion to the smallest units.
Input Decimals—Decimal scale for the input token when supplied explicitly.
Output Decimals—Decimal scale for the output token when supplied explicitly.
Look Up Missing DecimalstrueRead missing decimal scales from the token mints instead of entering them manually.
Slippage (%)0.5Maximum tolerated execution change in percent; 0.5 means half a percent.
Priority Fee Ceiling (micro-lamports/CU)100000The audited transaction may use a lower per-unit price, but never a higher one.
Wrap Input SOLtrueAllow native SOL to be wrapped for the input side of the swap.
Unwrap Output SOLtrueUnwrap output wrapped SOL into native SOL.
Input Token Account—If set, this must be the wallet associated token account for the input mint.
Output Token Account—If set, this must be the wallet associated token account for the output mint.
Transaction API URL—Optional Raydium transaction API URL used to request the route.
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.

Input Decimals: Available under More options. Limits: minimum 0; maximum 18.

Output Decimals: Available under More options. Limits: minimum 0; maximum 18.

Look Up Missing Decimals: Available under More options.

Priority Fee Ceiling (micro-lamports/CU): Available under More options.

Wrap Input SOL: Available under More options.

Unwrap Output SOL: Available under More options.

Input Token Account: Available under More options.

Output Token Account: Available under More options.

Transaction API URL: 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 to preserve with the submitted swap.

Outputs#

PortValueDescription
outobjectA freshly quoted, validated, signed, and submitted exact-input CLMM/CPMM Raydium route.

out fields#

FieldType
inputMintstring
outputMintstring
inputAmountRawstring
outputAmountRawstring
transactionSignaturestring
validationobject