Bitcoin Forum
June 24, 2024, 07:37:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to access blockchain data through bitcoind  (Read 810 times)
hyalart (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
October 28, 2012, 10:19:51 PM
 #1

Hello,

I am interested in indexing to a database ALL blocks/transactions since genesis for private use and I am trying to understand how to achieve this. The bitcoind API does not give you a way to access the information stored in the local database files and you can only get the transactions which are related with your wallet. Is there an API call I am missing here?

Thank you for your time
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
October 28, 2012, 10:43:40 PM
Last edit: October 29, 2012, 04:16:00 PM by Stephen Gornick
 #2

The bitcoind API does not give you a way to access the information stored in the local database files and you can only get the transactions which are related with your wallet.

That's changed now.

New, in version 0.7, is Raw Transactions:
 - http://en.bitcoin.it/wiki/Raw_Transactions

GetRawTransaction
then
DecodeRawTransaction
gives you what you are looking for.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


flatfly
Legendary
*
Offline Offline

Activity: 1078
Merit: 1016

760930


View Profile
October 28, 2012, 10:44:04 PM
 #3

I think ABE is what you're looking for:

 https://bitcointalk.org/index.php?topic=22785.0
hyalart (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
October 28, 2012, 10:50:40 PM
 #4

Thank you both for your answers. I already knew about ABE but I was hoping to do it through bitcoind's API, if possible. I guess i will give a chance to ABE.

@Stephen Gornick, can you please tell me from where did you quote that info?
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
October 29, 2012, 12:10:22 AM
 #5

where did you quote that info?

Are you asking where those are documented?

The wiki shows the API:
 - http://en.bitcoin.it/wiki/Raw_Transactions
 - http://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

And here's an example (PHP):
 - http://bitcointalk.org/index.php?topic=117866.0


Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


hyalart (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
October 29, 2012, 09:25:18 AM
 #6

@Stephen Gornick, I was just asking where exactly in those documents was that quote from because I have been through them and apparently I missed it Smiley

Thanks again for your useful input.
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!