5

I'm trying to extract history files from the archive, I understood that transaction file is built of pairs: (32bit length,data), but when I try to extract the data from a single stream I get error: tx_json = JSON.stringify(StellarSdk.xdr.TransactionEnvelope.fromXDR(data_b64, 'base64')); Error: XDR Read Error: Unknown PublicKeyType member for value 8851437

Comparing the base64 I get from the data and the base64 of a single transaction envelope I can see that my data_b64 includes additional data prior to the TransactionEnvelope, but what is the structure of this header?

  • Never mind, I figured out I should use TransactionHistoryEntry instead of TransactionEnvelope – Naama May 8 '18 at 13:22
  • 1
    please add your solution as an answer to this question and accept the answer so others can refer to this in the future. – nikhils May 31 '18 at 21:21
0

Mostly moving this to higher visibility, but the structure is TrancationHistoryEntry, which you can find in the XDR on Github.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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