so I send the transaction

    const buySign = await connection.sendTransaction(swapTx, [wallet], {
      skipPreflight: true,
      preflightCommitment: 'confirmed',
      maxRetries: 3

I get a signature 5kDu6b5HRsCDEawpGGAJCbDgmArPsBCTdAsHqUGFykqWjBU6kAq3jjhPZVBzwpYdWs7ctYkmQjrn3Q3gLBCkErt1

but I don't see anything in the scanner. Why did my transaction fail? What should I pay attention to? I'm doing a swap on raydium

sometimes the transaction is successful, sometimes it is not how to avoid this?

So. I added a serialized transaction. so you can see for yourself what's going on. Maybe this will help you understand why the transaction is not executed.



even when I do a simulated transaction. I don't see any errors there. but for some reason, I still can’t make a transaction. Am I blocked on the blockchain? hahahahahaha, wtf

1 Answer 1


I can't tell from the context why it wasn't sent to the network, but you can try serializing the Tx into base64 and running it with an inspector. This way you can see at least some information about the Tx and maybe decipher what is going wrong.


You would need to do something like

const serializedTx = swapTx.serialize();

Then cut and paste the output into the simulator window in your browser.

Once the transaction is deserialized, the display will change to show information about the Tx. Make sure you don't miss the "simulate" button.

enter image description here

  • thanks for the help. I added a serialized transaction. but I didn't understand what the error was and why the transaction failed. can you help?
    – slntrx
    Commented Mar 10 at 10:59
  • The data you included looks like a successful transaction. So sometimes you get a successful transaction in the scanner and sometimes you get no transaction in the scanner? I wonder if it is not included in the block. Can you add a priority fee?
    – Fuzzy Yeti
    Commented Mar 11 at 4:24
  • Yes everything is correct. sometimes the transaction succeeds. sometimes not. In recent days, I have had 1 successful transaction. 5 transactions not successful
    – slntrx
    Commented Mar 11 at 6:03
  • const UNITPRICE = ComputeBudgetProgram.setComputeUnitPrice({ microLamports: 160_000 }) const UNITLIMIT = ComputeBudgetProgram.setComputeUnitLimit({ units: 150_000 })
    – slntrx
    Commented Mar 11 at 6:03

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.