I'm in the last step of implementing the Jupiter swap API. I got all the swap quote all the way to the swap transaction. Now I have a base64 encoded swap transaction from Jupiter Swap API and need to convert and sign it then finally send the transaction to the network. The official guide is with JS/TS.
How to do this in Rust?
const transactionBase64 = swapResponse.swapTransaction const transaction = VersionedTransaction.deserialize(Buffer.from(transactionBase64, 'base64')); console.log(transaction); transaction.sign([wallet]); const transactionBinary = transaction.serialize(); console.log(transactionBinary); There's a VersionedTransaction struct here, but it doesn't have any initializer with a base64 encoded string. Am I missing something?