Im trying to figure out exactly what is expected to pack a transaction. I've written a class to pack my transaction based off of a couple of opensource projects I've seen. First of all is there any information as to was the requirements are to pack a transaction?

The error Im getting when trying to push_transaction is "Invalid Packed Transaction".

Updated version of my bytewriter and usage. Still getting error: https://gist.github.com/ismyhc/8825bb4b560b061d91289967ddff45b7

  • Have you confirmed that you are packing the bytes in the correct "endian-ness"? Jul 3 '18 at 20:58
  • @JohnHaager Thats a good question. Im writing this code in swift for iOS so I believe that its by default little-endian. What is the correct "endian-ness" ?
    – ismyhc
    Jul 3 '18 at 21:33
  • I believe it needs to be big endian. Jul 4 '18 at 21:59
  • 1
    It needs to be little endian Jul 7 '18 at 23:15
  • Thanks, I finally got everything working late last week. I will be posting an updated version of my swift bytewriter and usage soon.
    – ismyhc
    Jul 9 '18 at 20:00

Your Answer

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

Browse other questions tagged or ask your own question.