Which tool for which move
The route depends on the chains involved and on whether the token changes:
Never use Jupiter for a swap that is not on Solana, and never use Relay for a swap between two Solana tokens. Relay is on the Relay tools page.
Read tools
These four tools only read data and never move funds.Write tools
Each of these moves funds. Show the user a summary and get a yes before calling. Every trade needs the user’s confirmation, and nothing here is financial advice.Sending
Here is a send of 25 USDC on Base:chainIdis a number for EVM chains or"solana".tokenAddressis the token contract or mint. Use"native"for the chain’s native coin.amountis a raw integer in the token’s smallest unit. USDC has 6 decimals, so 25 USDC is25000000.
Swapping on Solana
A swap starts with a quote:transaction and a requestId. Pass transaction and requestId to onchain_jupiter_execute after the user confirms.
Before any swap where the user named a token by symbol:
1
Resolve the token
Call
onchain_search_tokens and pick the match with the most liquidity on the right chain. If several are close, show the top few and ask.2
Default the other side to SOL
If the user named only one token, use wrapped SOL for the other side. Do not substitute a stablecoin unless asked.
3
Show how to verify
Give a chart link for the token, and state its market cap, liquidity and 24 hour volume.
4
Warn on thin or volatile tokens
If the market cap or liquidity is low, or the one-day move is large, say so plainly before asking for confirmation.
5
Confirm
Show input, estimated output, price impact, slippage and route. Execute only after a yes.
Tips
- Decimals differ. USDC has 6 and SOL has 9. Do not assume 18. Read
decimalsfrom search or metadata before you scale an amount. - Balances first. Use holdings without NFTs for trade preparation. It is faster.
- Solana wallet setup. If
onchain_jupiter_executereturns412, the user’s Solana wallet is not yet enabled for agent trading. Relay the instructions in the error. - Supported send chains include Ethereum, Polygon, Base, Arbitrum, Optimism, BNB Chain, Avalanche, Linea, Blast, Scroll, zkSync, Zora, Robinhood Chain and Solana.
- A Solana send to a new holder creates the recipient’s token account, and the sender pays a small amount of SOL for it.
Next
Relay tools
Bridges and EVM swaps.
Onchain tokens
The plain-language guide.

