Bitcoin Forum
June 16, 2024, 06:52:02 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Raw transaction : which version for P2SH  (Read 136 times)
darosior (OP)
Sr. Member
****
Offline Offline

Activity: 279
Merit: 435


View Profile
December 13, 2018, 01:27:14 PM
Merited by ABCbits (1), DarkStar_ (1)
 #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.
Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
December 13, 2018, 04:54:34 PM
Merited by DarkStar_ (2), ABCbits (1), darosior (1)
 #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!

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
aliashraf
Legendary
*
Offline Offline

Activity: 1456
Merit: 1174

Always remember the cause!


View Profile WWW
December 13, 2018, 06:37:53 PM
Merited by ABCbits (1), darosior (1)
 #3

Op!
Set it to 2 always and set yourself free. In relative time lock, for instance you need it to be 2.
darosior (OP)
Sr. Member
****
Offline Offline

Activity: 279
Merit: 435


View Profile
December 13, 2018, 11:35:54 PM
 #4

Ok, thank you both !  Smiley
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!