Author

Topic: Bitcoin-qt JSON (Read 776 times)

legendary
Activity: 1974
Merit: 1030
May 31, 2013, 12:02:30 PM
#4
Do you know if it's possible to lookup transaction by address?

There's no way that I know of. Addresses don't exist at such a low level.
legendary
Activity: 1190
Merit: 1001
May 31, 2013, 02:24:40 AM
#3
Thanks worked.

Do you know if it's possible to lookup transaction by address?
legendary
Activity: 1974
Merit: 1030
May 31, 2013, 01:45:49 AM
#2
You need to run bitcoin with the parameter -txindex=1 and then you'll be able to getrawtransaction on any txid.
legendary
Activity: 1190
Merit: 1001
May 30, 2013, 10:36:33 PM
#1
I'm trying to determine what data is actually stored in the blockchain.

If I want to lookup a transaction that occurred 3 months ago (assuming the transaction did not involve addresses within my wallet), can I?

For example:

Code:
  require_once 'jsonRPCClient.php';
 
  $bitcoin = new jsonRPCClient('http://myuser:[email protected]:8332/');
 
  print_r($bitcoin->gettransaction('65e5469feca4d0cb11dad590500b39a563a3846bea93ed3f979c7cc7311197e7'));


This returns nothing; this function only seems to return transactions that involve my addresses.
Jump to: