Is there a straightforward way to ascertain from the horizon txn post response if the seqno has been incremented?
For example, an underfunded
operation will cause the seq number to increment, but a bad_auth
won't. Both responses are similar. They have no results meta field, and a result code of tx_failed
.
This other question talks about why it happens and in which circumstances, but I am interested in how to determine whether it happened, without having to enumerate those different circumstances.
Looking at github.com/stellar/go/issues/430#issuecomment-385813801 it seems the answer might be to check for the presence of (edit: no). A more explicit field would be good./extras/result_codes/operations
.
/extras/result_codes/operations
. A more explicit field would be good."result_xdr"
. That is some base64 string like"AAAAAAAAAGT////2AAAAAA=="
, and the behaviour is deterministic such that some result_xdr always increases sequence number while some others always not.result_xdr
. For example, with the same message "txBadSeq", there are TWO DIFFERENT CASES - see here stellar.stackexchange.com/questions/946/…sequenceIncremented
in terms offeeCharged
. github.com/Synesso/scala-stellar-sdk/blob/master/src/main/scala/…