Author

Topic: signrawtransaction won't sign (Read 724 times)

pc
sr. member
Activity: 253
Merit: 250
June 01, 2013, 08:35:33 PM
#2
For a multisig address, you need to pass along to signrawtransaction the information about how to construct the multisig address. Otherwise, it doesn't know how to sign it. I think it goes where you put the "null" parameter… It can't be null to do what you're trying to do.
full member
Activity: 202
Merit: 100
June 01, 2013, 05:34:22 AM
#1
Problem:
signrawtransaction refuses to sign a transaction.

I have created a 2-of-3 address and sent some BTC into it
https://blockchain.info/address/3JNaZ9A1yMpRTGyoG9Vq9MvvjKcECYbSoo

Now I'm trying to create a transaction to spend the BTC out of the 2-of-3 address.

Quote
1. createrawtransaction '[{"txid":"a3b2c1db9424a0623aa92e2ec512f6ff26401c51726151cab842dbaffc2fe81e","vout":0}]' '{"1KSuZeo4TuD9DjbQrrTUao5YSfUQ3fNNVn":0.03}'

01000000011ee82ffcafdb42b8ca516172511c4026fff612c52e2ea93a62a02494dbc1b2a300000 00000ffffffff01c0c62d00000000001976a914ca588a5e4a878c889ec86fc77c7907edd4b67987 88ac00000000
let's call this ^^^

Quote
2. signrawtransaction null '["5J...one of the 3 priv keys used to create the 2-of-3 address..SoV"]'

{
"hex" : "01000000011ee82ffcafdb42b8ca516172511c4026fff612c52e2ea93a62a02494dbc1b2a300000 00000ffffffff01c0c62d00000000001976a914ca588a5e4a878c889ec86fc77c7907edd4b67987 88ac00000000",
"complete" : false
}

As you see, nothing gets signed.

I'm using stock bitcoin-qt 0.8.1 fully synced
The private key is definitely there, I can see its corresponding address.
I'm stuck and need advice.
Jump to: