Skip to main content

New answers tagged

2 votes
Accepted

Using jupiter swap instructions for faster transactions

Performance-wise, it doesn't change anything (after all /swap is just a Transaction/VersionTransaction populated with the contents of /swap-instructions). The reason this endpoint exists is for ...
Ahri's user avatar
  • 4,727
0 votes

Convert VersionedTransaction to Transaction

Here is how you can convert a versioned transaction to a legacy transaction // your versioned transaction let tx: VersionedTransaction = ....; let txInstructions = TransactionMessage....
Jimii's user avatar
  • 3,770
1 vote

How to send transactions correctly and efficiently in python

Looking through the solana-py code, it looks like it'll usually do the right thing. You're forcing send_raw_transaction to also confirm the transaction, which eventually calls into https://github.com/...
Jon C's user avatar
  • 16.1k
1 vote

How to add compute instructions to VersionedTransaction

I believe you search for TransactionMessage.decompile const txMessage = TransactionMessage.decompile(transaction.message); txMessage.instructions.push(instruction); const messageV0 = txMessage....
chalda's user avatar
  • 1,392

Top 50 recent answers are included