- Solana
- Base (EVM)
Common Errors
AccountNotInitialized
Error:user_from_token_account - Account not initializedSolution: You need USDC tokens in your wallet. Get devnet USDC from CDP Faucet.The example code includes logic to auto-create the destination token account if needed (
needsAccountCreation). However, you must have the input token (USDC) before swapping.Insufficient lamports
Error:insufficient lamports or insufficient funds for rentSolution: You need more SOL for transaction fees and rent. Get at least 0.05 SOL from CDP Faucet.InsufficientLiquidity
Error: Not enough reserves in the output vaultSolution: Reduce swap amount or wait for liquidity to be added.SlippageExceeded
Error: Output is less thanmin_amount_outSolution: Increase slippage tolerance or re-fetch current fee rate.