I need help signing transaction #2157
Answered
by
guggero
jerempjerem
asked this question in
Q&A
-
I'm new to bitcoin and I need some help to build my transaction, I just want to send btc from a P2SH address (3...) to another P2SH address (3...) here is my code :
|
Beta Was this translation helpful? Give feedback.
Answered by
guggero
Apr 4, 2024
Replies: 1 comment 10 replies
-
Is this a nested segwit (np2wkh) address? Then you need to pass in the correct subscript into the |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay, I think you need to both use the
witnessScript
and thesubScript
differently now. Use thewitnessScript
for the call toRawTxInWitnessSignature
and thesubScript
is what's assigned totxIn.SignatureScript
. Does that work?