2

This is a very simple question. I'm trying implement a client for Bitcoind JSON API and I'm stuck on this getrawtransaction call:

{"id":"getrawtransaction",
"param":["91eb6cb34b9253cce0ab5da171a0f5aae9d3d36208e23062ba61cd9e21c09a3d",1],
"method":"getrawtransaction","jsonrpc":"2.0"}

As the result I get:

{"result":null,"error":{"code":-1,"message":"getrawtransaction <txid> 
[verbose=0]\nIf verbose=0, returns a string that is\nserialized, hex-encoded data for
 <txid>.\nIf verbose is non-zero, returns an Object\nwith information about
 <txid>."},"id":"getrawtransaction"}

Could someone point me at what can be wrong? I'm sure it's something simple but I cannot get it. Bitcoind v. 0.8.

1 Answer 1

3

I think that should be "params" not "param"

2
  • Thanks! Shame on me. I knew it would be something stupid:) Commented May 5, 2013 at 18:29
  • Hehe, happens to all of us. :)
    – nanotube
    Commented May 5, 2013 at 18:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.