user90811: I am trying this command to get transaction from bitcoin testnet:
curl  --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["txId"] }' -H 'content-type: text/plain;' http://username:password@IP:PORT/

And i am getting following error
{ "result":null, "error":{"code" :-32601, "message" : "Method not found"}, id:curltext}


user109558: Is your core compiled with the wallet? Because gettransaction RPC get wallet transactions, and hence need wallet capabilities. For general transactions, you should use getrawtransaction instead.
I ran it here (with wallet enabled) and works just fine.

90811: <p>I am trying this command to get transaction from bitcoin testnet:</p>

<pre><code>curl  --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["txId"] }' -H 'content-type: text/plain;' http://username:password@IP:PORT/
</code></pre>

<p>And i am getting following error</p>

<pre><code>{ "result":null, "error":{"code" :-32601, "message" : "Method not found"}, id:curltext}
</code></pre>
 109558: <p>Is your core compiled with the wallet? Because <code>gettransaction</code> RPC get wallet transactions, and hence need wallet capabilities. For general transactions, you should use <code>getrawtransaction</code> instead.<br />
I ran it here (with wallet enabled) and works just fine.</p>
