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.

New contributor
Elizabeth is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

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')
console.log(parsedTx)

This method i used in JS SDK.

Your Answer

Elizabeth is a new contributor. Be nice, and check out our Code of Conduct.
 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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