Author

Topic: Raw transaction : which version for P2SH (Read 152 times)

sr. member
Activity: 279
Merit: 435
December 13, 2018, 06:35:54 PM
#4
Ok, thank you both !  Smiley
legendary
Activity: 1456
Merit: 1175
Always remember the cause!
December 13, 2018, 01:37:53 PM
#3
Op!
Set it to 2 always and set yourself free. In relative time lock, for instance you need it to be 2.
legendary
Activity: 1042
Merit: 2805
Bitcoin and C♯ Enthusiast
December 13, 2018, 11:54:34 AM
#2
Both versions 1 and 2 would be valid in your case. And whenever you are in doubt, just use the highest version which is currently 2!
sr. member
Activity: 279
Merit: 435
December 13, 2018, 08:27:14 AM
#1
Hi,

I'm creating raw (non-segwit) transactions and am wondering if I should specify a version >1 for a tx paying to a script hash to be valid.
Jump to: