<p>I think that should be "params" not "param"</p>

CC BY-SA 3.0
2013-05-05T18:29:16.740Z
Thanks! Shame on me. I knew it would be something stupid:)
Alexey Kalmykov
CC BY-SA 3.0
2013-05-05T18:35:51.447Z
Hehe, happens to all of us. :)
nanotube
CC BY-SA 3.0
2013-05-05T18:19:17.323Z
2013-05-05T18:19:17.323Z
nanotube
<p>This is a very simple question. I'm trying implement a client for Bitcoind JSON API and I'm stuck on this <code>getrawtransaction</code> call:   </p>

<pre><code>{"id":"getrawtransaction",
"param":["91eb6cb34b9253cce0ab5da171a0f5aae9d3d36208e23062ba61cd9e21c09a3d",1],
"method":"getrawtransaction","jsonrpc":"2.0"}
</code></pre>

<p>As the result I get:</p>

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

<p>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.</p>

<bitcoind><json-rpc>
What's wrong with this getrawtransaction JSON-RPC call?
Alexey Kalmykov
# What's wrong with this getrawtransaction JSON-RPC call?

(Asked by: username_0 on 2013-05-05)

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.

**Tags:** bitcoind, json-rpc


---

## 1 answers

### Answer by username_1 on 2013-05-05. Score: 3 | Accepted answer

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

> **Comments:**
> **username_0**: Thanks! Shame on me. I knew it would be something stupid:)  
> **username_1**: Hehe, happens to all of us. :)  

---

