Solana copy trading starts with an observed wallet action. Your application identifies the swap, applies its own limits and signs a new transaction.
Supanode supplies streams, RPC reads and transaction delivery. You build the decoder, trading policy and bot.
Keep the first decoder narrow.
Start with one supported program version and one clearly attributed swap. Verify the wallet's authority, input and output mints, successful status and token-account ownership.
This example follows a wallet that authorizes a single supported swap. Unknown aggregators, multiple actions and unclear attribution are skipped until you add a tested adapter.
See Raydium CP-Swap's input/output model
- Supported, successful swap CHECK POLICY
- Decode the known instruction and its account roles. Match the followed wallet to the action, then validate the relevant balance changes.
- Transfer or account setup SKIP
- A transfer, ATA creation or SOL wrap is not sufficient evidence of a swap. Balance changes alone do not identify the trading intent.
- Failed source transaction SKIP
- Check the transaction error before acting on logs. A failed swap does not establish a completed trade; fees can still be charged.
- Unknown or ambiguous route SKIP + RECORD
- A new program version, unsupported multi-hop route or unclear authority needs a supported decoder. Do not guess a buy from token movements.
Solana's parsed JSON can still contain partially decoded instructions. A wallet-address filter also does not cover every transfer involving its token accounts when the owner address is absent from the transaction account list.