With the DefaultTestNetClient implementing the SequenceProvider interface, when we use a private testnet, how would we need to implement this since without it (I guess) transactions cannot be submitted to stellar-core ? I am not using the DefaultTestNetClient and have used my own created from horizon.Client. So, I either have to write my own SequenceProvider or use SequenceForAccount. Or can I do away with having the transaction sequence auto generated ?

My primary use case is that I am trying to create a new transaction and submit it in Stellar private testnet.

Please correct me where needed.


1 Answer 1


I figured that I needed to implement my own SequenceProvider looking at https://github.com/stellar/go/blob/master/clients/horizon/main.go#L20 and https://github.com/stellar/go/blob/master/clients/horizon/main.go#L108 and https://github.com/stellar/go/blob/master/clients/horizon/main.go#L111

  • 1
    thats great! don't forget to close the question! Mar 16, 2018 at 17:37

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.