Skip to main content
1 vote
Accepted

How can a replace occur with a tx with lower fee and feerate?

Generally, the replacement rules employed by Bitcoin Core specify that a replacement must both exceed the original transaction in feerate as well as in absolute fees. A likely explanation could be ...
Murch's user avatar
  • 75.9k
1 vote
Accepted

How to create and sign a segwit transaction using any npm pacakge

From error message, I guess you sign your transaction in a same way when spend legacy address, because it literally means your script sig is not empty(it must be empty for segwit spend as script sig ...
Hyunhum's user avatar
  • 46
1 vote
Accepted

What's the reason for the scriptCode format for a P2WPKH? (BIP 143)

Maybe one of the authors of BIP143 will correct me, but I think this was done to simplify the implementation in Bitcoin Core. If you look at the code for P2WPKH validation, you can see it actually ...
Vojtěch Strnad's user avatar
1 vote
Accepted

SegWit with BitCore-Lib

you can use bitcoinjs-lib package instead. here's the code for reference const bitcoin = require("bitcoinjs-lib"); const ecc = require("tiny-secp256k1"); const { ECPairFactory } = ...
Sudhanshu Sinha's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible