Currently there's no way (as far as I can tell) to set the sequence number of a txin when building a transaction using TransactionBuilder, beyond setting it to OptInRBF. It might be nice to have a method like TransactionBuilder.AddCoinWithSequence(ICoin coin, Sequence sequence) or perhaps extend Coin itself with a Sequence field, or perhaps extend the API in some other way to achieve the same thing.
I'm happy to implement this myself but I'd like to hear opinions first on what the most appropriate way would be.
I think that's good idea.
Instead of doing AddCoinWithSequence can you instead add a overload to AddCoin() with a CoinOptions class. Then in this CoinOptions, jus add a single Sequence property.
Currently there's no way (as far as I can tell) to set the sequence number of a txin when building a transaction using
TransactionBuilder
, beyond setting it toOptInRBF
. It might be nice to have a method likeTransactionBuilder.AddCoinWithSequence(ICoin coin, Sequence sequence)
or perhaps extendCoin
itself with aSequence
field, or perhaps extend the API in some other way to achieve the same thing.I'm happy to implement this myself but I'd like to hear opinions first on what the most appropriate way would be.