Bitcoin Forum
May 01, 2024, 03:14:52 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin-qt JSON  (Read 757 times)
dave111223 (OP)
Legendary
*
Offline Offline

Activity: 1190
Merit: 1001


View Profile WWW
May 31, 2013, 03:36:33 AM
 #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:mypass@127.0.0.1:8332/');
 
  print_r($bitcoin->gettransaction('65e5469feca4d0cb11dad590500b39a563a3846bea93ed3f979c7cc7311197e7'));


This returns nothing; this function only seems to return transactions that involve my addresses.
1714576492
Hero Member
*
Offline Offline

Posts: 1714576492

View Profile Personal Message (Offline)

Ignore
1714576492
Reply with quote  #2

1714576492
Report to moderator
1714576492
Hero Member
*
Offline Offline

Posts: 1714576492

View Profile Personal Message (Offline)

Ignore
1714576492
Reply with quote  #2

1714576492
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
May 31, 2013, 06: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.
dave111223 (OP)
Legendary
*
Offline Offline

Activity: 1190
Merit: 1001


View Profile WWW
May 31, 2013, 07:24:40 AM
 #3

Thanks worked.

Do you know if it's possible to lookup transaction by address?
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
May 31, 2013, 05: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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!