Author

Topic: Signrawtransaction not working (Read 1160 times)

sr. member
Activity: 467
Merit: 267
December 16, 2014, 08:37:33 PM
#9
Try with curl first to narrow down the issue to JSON vs PHP.
sr. member
Activity: 261
Merit: 265
December 16, 2014, 05:30:02 PM
#8
Did you try to sign the same transaction directly via bitcoind? Probably the problem is in data you send.
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
December 14, 2014, 05:16:28 PM
#7
-snip-
Both work via the console but not using the json-rpc interface.

Im sorry if this is a stupid thing to suggest (I have never written PHP), but might this be a problem of (non-)escaped chars?

And this [1] is probably redundant info, but it took me a while to find when I wrote a ruby script, so maybe you didnt know about it.

[1] https://en.bitcoin.it/wiki/API_reference_%28JSON-RPC%29#PHP
hero member
Activity: 740
Merit: 501
December 14, 2014, 05:12:46 PM
#6
Code:
I do so via PHP [code]signrawtransaction('01000000014bdd5...', '[{"txid":"ad0c9...', '["cTbyn7kCBAa7y...')

When signing only this much is needed unless you are signing the TX with more than one private key . Try, [ code]signrawtransaction 01000000014bdd5...[/code][/s] .

Try,
Code:
signrawtransaction 01000000010..... '[{"txid":"a9d459....","vout":,"scriptPubKey":"76a91..."}]'


   ~~MZ~~

Both work via the console but not using the json-rpc interface.
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
December 14, 2014, 12:06:39 PM
#5
Code:
I do so via PHP [code]signrawtransaction('01000000014bdd5...', '[{"txid":"ad0c9...', '["cTbyn7kCBAa7y...')

When signing only this much is needed unless you are signing the TX with more than one private key . Try, [ code]signrawtransaction 01000000014bdd5...[/code] .

Try,
Code:
signrawtransaction 01000000010..... '[{"txid":"a9d459....","vout":,"scriptPubKey":"76a91..."}]'


   ~~MZ~~
hero member
Activity: 740
Merit: 501
December 14, 2014, 11:36:34 AM
#4

Doesn't help much, would be curious how one of the dev explains this, seems like a bug.
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
hero member
Activity: 740
Merit: 501
December 14, 2014, 12:09:25 AM
#2
Anyone?
hero member
Activity: 740
Merit: 501
December 13, 2014, 05:08:56 PM
#1
When I try to sign a raw transaction with the same parameters in bitcoind everything works, when I do so via PHP
Code:
signrawtransaction('01000000014bdd5...', '[{"txid":"ad0c9...', '["cTbyn7kCBAa7y...')
I get an internal server error from Bitcoin.

Keep in mind that I can easily connect from and issue other json-rpc commands and that the signing works (with each parameter enclosed with ')
Jump to: