#increment transaction sequence number & try again

6 messages · Page 1 of 1 (latest)

sullen agate
#

I try to sendTransaction, it fails with badTxSeq.

I want to increment the transaction sequence number on the original unsigned transaction, re-simulate, re-sign, and automatically try sendTransaction again.

I have the account that originally simulated & signed the transaction and I can ts account.incrementSequenceNumber()But I'm not how to pass this into cloneFrom or otherwise use it to increase the sequence number of the transaction.

proven cairn
#

Is this in the js-sdk?

#

cc @modest vigil do you know?

sullen agate
#

soroban-client, or with js-stellar-base, whichever works

#

I could totally recreate the transaction from the original args, but that's complicated for reasons, and seems like it shouldn't be necessary

modest vigil
#

Hm, wait, isn’t that exactly what cloneFrom is for?