Closed bellaj closed 5 years ago
Specifically
bitcoin.payments.p2sh({ hash })
In your case. Assuming I understood what you are trying to do.
Thanks for your answers. I am trying to construct a raw transaction by consuming a P2SH input . I've found an example in transaction.js but it's using a segwit p2wpkh redeem script which I am trying to avoid because many broadcasting APIs (blockcypher...) don't support segwit yet. So can i construct a raw transactions without segwit redeem script?
@bellaj the example given by @dabura667 is not segwit.........
what kind of p2sh are you trying to use? your original question was attempting to make a p2sh output... what kind of p2sh output are you trying to consume?
We need more information to help you. Please give us an address, a redeemscript, anything to help us help you.
@bellaj if you have another question, please open another appropriately titled issue :)
I've installed the latest version but When i use
i get
TypeError: Cannot read property 'output' of undefined