I am trying to send a transaction via http call without Horizon. Here is the tx information


but I am getting error:

{"exception": "bad value of type in PublicKey"}

I tried to debug the code. It is throwing this error in this line xdr::xdr_from_opaque(binBlob, envelope); which I am not sure what it is.



I am using custom network.

1 Answer 1


There are a few ways to debug it, my samples are in python, but use whatever suits you.

View your TX in the stellar laboratory

Base64 decode your blob:

>>> from base64 import b64decode

Take it to the lab.

Note that there is a problem with the signature.

Fire your TX to horizon to get a better error

>>> from stellar_base.builder import Builder
>>> b.submit()

Check the output - the problem in question is 'result_codes': {'transaction': 'tx_bad_seq'} - you'd run into this once you fixed your signature problem - bumb up the sequence.

  • thanks for the reply. Sorry forgot to mention in my question that, I am using custom network not test or public. I think you have checked in the test/public network that is why you've got bad_seq error. For me every thing seems to be correct in laboratory. but still throwing error when called stellar-core. :( Dec 5, 2018 at 6:22
  • 1
    Closing this question as I figured out this happened because of build problem. and accepting this answer as well. Dec 6, 2018 at 5:11

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.