I’m trying to perform a token swap on Solana using the Jupiter swap API, but I keep getting the following error:
Error while performing the swap: Transaction initiation failed: Simulation failed.
Message: Transaction simulation failed: Error processing Instruction 2: invalid program argument.
Logs:
[
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: GetAccountDataSize",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 1569 of 1394295 compute units",
"Program return: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA pQAAAAAAAAA=",
"Program 11111111111111111111111111111111 invoke [2]",
"Transfer: `from` must not carry data", // <<<<<<<<----------------------
"Program 11111111111111111111111111111111 failed: invalid program argument",
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 9973 of 1399700 compute units",
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL failed: invalid program argument"
]
I've been using this wallet for the past few days and everything was okay! I think I started getting this error when I ran a script to close my token accounts... I cant send, swap or anything else with the wallet now, I get the same error!
Here’s what I’ve done so far:
- Closed all token accounts and ensured they have zero balance.
- Verified that my wallet has enough SOL for transaction fees.
- Tried using different swaps and AMMs but got the same error.
Could someone help me figure out what might be going wrong or suggest any troubleshooting steps?
Example failed tx: https://solscan.io/tx/5jor7KgmqTtJBSL6gqGauPaeMbSqKVTTMPpDvzpSrXsxdLSYBh1b7sRXPrPgnhrHGGNXaYSUK1Hg9BsubWeMQKhs