Author

Topic: NLockTime with RawTx (Read 669 times)

jr. member
Activity: 43
Merit: 7
September 01, 2015, 07:10:34 AM
#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!
staff
Activity: 3458
Merit: 6793
Just writing some code
September 01, 2015, 06: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.
jr. member
Activity: 43
Merit: 7
September 01, 2015, 04: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!
Jump to: