0

I am creating a program in Java to send a swap transaction, but I keep receiving this error.

Transactions examples:

https://solscan.io/tx/46mZJDZFB9LeBnf8Vvq17JYemYPBBQhsqwZ68kmbGaTNGBbuppM6xmcYQFpBqMYSrr973xFyhYtEnNRQSGK3aQPC https://solscan.io/tx/2PtGw2uDo59pwc8voHqsmBCDA2pQYtc1hBXivyKBAmeC8pGCmARN6jUWyGSUyBD7D5hkRzeJgHgzGAkG3wRcT3TT

Basically, what I am doing:

  1. set ComputeUnitLimit
  2. set ComputeUnitPrice
  3. create WSol associated account
  4. transfer amount to wsol associated account to pay for the swap and rent
  5. create tokens associated account
  6. Raydium swap
  7. close Wsol associated account created in 3.

I am trying to swap 0.0001 SOL and the wallet has 0.038632336 SOL. The rent is 0.00203928.

Any help would be more than great!!

Thanks all!!

enter image description here

3
  • Without code we cant help. Maybe just add more SOL to wallet. Commented Jun 2 at 23:27
  • Please use text, rather than screenshots, to post your error.
    – mikemaccana
    Commented Jun 3 at 16:35
  • Hi, did you ever solve this. I am seeing the same things now. Thx.
    – Steven K
    Commented Jul 4 at 19:44

1 Answer 1

0

Its probably because you miss the sync transaction that actually does the swap of sol to Wsol

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.