Skip to main content
This Processor enables token swaps from a Raydium pool. The swap is executed via Raydium AMM Routing contract, the same contract used when you swap tokens through the Raydium interface. Libraries used in the swap Processor code:
Note: This Processor only swaps within a single pool and does not use an aggregator to swap across multiple pools. Therefore, you must configure the pool address for the swap.
Example: Swapping FARTCOIN tokens to SOL

Example: Swapping FARTCOIN tokens to SOL

In the example above, the configuration swaps FARTCOIN tokens to SOL using the FARTCOIN/SOL pool on the Solana network.

Configuration fields

How to select the Priority fee for the Processor

If you want your transaction to be mined faster by competing on gas, you can manually set the Priority fee (in micro lamports) for the Processor. For example, if you want to swap tokens in the FARTCOIN/SOL pool, review several recent transactions to see their Priority fee. This will help you select an appropriate value for the Processor. Using the following transaction as a reference: https://solscan.io/tx/dYyK6KWMEzeigoCWBhzebgBjK1LDqPwxJyv16abW1vjEDhfEEoGV6Q2V2PUEXWBzbyyRp6GWQDDGGYqesZE4Eq6, navigate to the Instruction Detail > SetComputeUnitLimit section to view the Priority fee. Based on this, you can set the Priority fee (Micro lamports) to 250000.
Example of how to determine the Priority fee

Example of how to determine the Priority fee