Bitcoin Forum
December 17, 2017, 08:29:45 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: NLockTime with RawTx  (Read 570 times)
init1
Jr. Member
*
Offline Offline

Activity: 43


View Profile
September 01, 2015, 09:27:13 AM
 #1

Hello!
Can I add NLockTime parameter and recovered address for the RawTx ?

For example I have prepared raw tx like this

Quote
./bitcoind createmultisig 2 '["04D9546728BB1D1BF309EF3C2C7278D8D306052ECF7DC81443F16E75AE607099DFCFC573A3E7155 3BD8321D91C209BAB03AA999BEFA6E77734C0F4DD34EF78EBFD","041050FF637A97FA462DFFA19D0BC013869F6231895019BD9F263A0A55A067665CFCA4473AAB1DC 38E8AECF359E23CE6BB35FF900BC84FDD890A3B982EA50DD92F","04E086DCE7893384CBFA89FBBF7D33DE3F1EE01279A1E9810D952F1C440E91FC7EE7CB9CF070DFB DEE397E123C363D140221E81610B7BD695905FBF198EDFD71A1"]'

and got result

Code:
{
"address" : "2NEV6KKpFiWb3HKb75TqEupePDXaznTqGaC",
"redeemScript" : "524104d9546728bb1d1bf309ef3c2c7278d8d306052ecf7dc81443f16e75ae607099dfcfc573a3e71553bd8321d91c209bab03aa999befa6e77734c0f4dd34ef78ebfd41041050ff637a97fa462dffa19d0bc013869f6231895019bd9f263a0a55a067665cfca4473aab1dc38e8aecf359e23ce6bb35ff900bc84fdd890a3b982ea50dd92f4104e086dce7893384cbfa89fbbf7d33de3f1ee01279a1e9810d952f1c440e91fc7ee7cb9cf070dfbdee397e123c363d140221e81610b7bd695905fbf198edfd71a153ae"
}

can I add NLockTime to the createmultisig 2 ?

BR!
1513499385
Hero Member
*
Offline Offline

Posts: 1513499385

View Profile Personal Message (Offline)

Ignore
1513499385
Reply with quote  #2

1513499385
Report to moderator
1513499385
Hero Member
*
Offline Offline

Posts: 1513499385

View Profile Personal Message (Offline)

Ignore
1513499385
Reply with quote  #2

1513499385
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513499385
Hero Member
*
Offline Offline

Posts: 1513499385

View Profile Personal Message (Offline)

Ignore
1513499385
Reply with quote  #2

1513499385
Report to moderator
1513499385
Hero Member
*
Offline Offline

Posts: 1513499385

View Profile Personal Message (Offline)

Ignore
1513499385
Reply with quote  #2

1513499385
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1246


17kKQppUsngUiByDsce4JXoZEjjpvX9bpR


View Profile WWW
September 01, 2015, 11:25:01 AM
 #2

First of all, that only made you a multisig address, not a transaction. To create a transaction you need to use createrawtransaction and modify the hex to add the locktime. Then you need to sign it with signrawtransaction.

init1
Jr. Member
*
Offline Offline

Activity: 43


View Profile
September 01, 2015, 12:10:34 PM
 #3

First of all, that only made you a multisig address, not a transaction. To create a transaction you need to use createrawtransaction and modify the hex to add the locktime. Then you need to sign it with signrawtransaction.

Thanks for you answer.

Yes I can create rawTx by the next command

Quote
./bitcoin-cli createrawtransaction '[{"txid":"fba4b0a1e11b68c587aae3578844d68131c807913767a1efc9a699d38ecd9f06","vout":1,"scriptPubKey":"a914e8fa0f97c663ba132bd81e6d657c46825d390e6c87",
"redeemscript":"524104d9546728bb1d1bf309ef3c2c7278d8d306052ecf7dc81443f16e75ae607099dfcfc573a3e 71553bd8321d91c209bab03aa999befa6e77734c0f4dd34ef78ebfd41041050ff637a97fa462dff a19d0bc013869f6231895019bd9f263a0a55a067665cfca4473aab1dc38e8aecf359e23ce6bb35f f900bc84fdd890a3b982ea50dd92f4104e086dce7893384cbfa89fbbf7d33de3f1ee01279a1e981 0d952f1c440e91fc7ee7cb9cf070dfbdee397e123c363d140221e81610b7bd695905fbf198edfd7 1a153ae"}]' '{"motbFuaf7Q7xWqBbo7zFu83sdNBspvYkFY":0.0001}'

Do you have any example how to put NLockTime to the createrawtransaction ?

BR!
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!