Given a base64 & XDR encoded transaction, how can I convert this into a transaction object? I already saw this answer, but couldn't find the Transaction.fromEnvelopeXdr(...) method.


2 Answers 2


The method Transaction.fromEnvelopeXdr (seen here) was only introduced in recent months. Check the repository to ensure that you are using the latest version of the SDK.

const {Transaction} = require('stellar-base')

const parsedTx = new Transaction('tx_envelope_encoded_as_XDR')

This method i used in JS SDK.

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.