Post
Topic
Board Bitcoin Technical Support
Re: python-bitcoinrpc (jgarzik) problem calling gettransaction()
by
RoxxR
on 24/05/2014, 18:07:58 UTC
Dear guys;

I use this code:

Code:
from bitcoinrpc.authproxy import *

access = AuthServiceProxy("PRIVATEDETAILS")

print access.getbalance()
txid = 'aedf77851ee49a85857126b9003f8058c355c7e30e51a8ef5c74042a73ab247f'
printa = access.gettransaction(txid)

It doens't work.
Python gaves me this error:
Quote
   raise JSONRPCException(response['error'])
bitcoinrpc.authproxy.JSONRPCException

The call of function access.getbalance() works fine.
Any idea how to fix this?

Kind regards;

I've had this issue a while ago and resolved it. I will need to look through my code samples and post the exact solution shortly. I'd appreciate a small tip to the following address if it resolves your problem:
1JEEELLkkn2Wu3oVNdXbbkbMAtpgFaTwfo