Bitcoin Forum
May 03, 2024, 05:43:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Full blockchain, search for values on pub-key (using python)  (Read 868 times)
xychix (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
December 09, 2015, 02:37:52 PM
 #1

Hello,

I want to be able to do (quite a few more than blockchain.info will allow me) query's on the available bitcoins at a public address.

Therefore in the past I'd downloaded the full blockchain using bitcoin-qt and was using bitcoin-abe to place this all in a MySQL database.
https://github.com/bitcoin-abe/bitcoin-abe

with that solution I could use python to query the coins sources available at a public address.

This however requires storing the while blockchain twice (original + mysql).
Are there already more efficient ways of doing this?

regards,
xychix
1714715019
Hero Member
*
Offline Offline

Posts: 1714715019

View Profile Personal Message (Offline)

Ignore
1714715019
Reply with quote  #2

1714715019
Report to moderator
1714715019
Hero Member
*
Offline Offline

Posts: 1714715019

View Profile Personal Message (Offline)

Ignore
1714715019
Reply with quote  #2

1714715019
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714715019
Hero Member
*
Offline Offline

Posts: 1714715019

View Profile Personal Message (Offline)

Ignore
1714715019
Reply with quote  #2

1714715019
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6578


Just writing some code


View Profile WWW
December 09, 2015, 03:26:43 PM
 #2

You could directly query the leveldb databases that bitcoin core uses. You can also use the rpc commands that bitcoin core has available.

xychix (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
December 09, 2015, 03:29:52 PM
 #3

You could directly query the leveldb databases that bitcoin core uses. You can also use the rpc commands that bitcoin core has available.

Thanks I was on my way of checking that out. Just installing a new ubuntu server and will install bitcoin and let that pull in the blockchain. as that would be the way to start anyway Smiley
moneyart
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
December 09, 2015, 07:37:44 PM
 #4

Quote
You can also use the rpc commands

Can you tell a little bit more about rpc commands? I didn't find them in the console when I type in help.
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1012


View Profile
December 09, 2015, 08:14:31 PM
 #5

https://github.com/petertodd/python-bitcoinlib

“God does not play dice"
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6578


Just writing some code


View Profile WWW
December 09, 2015, 11:02:32 PM
 #6

Quote
You can also use the rpc commands

Can you tell a little bit more about rpc commands? I didn't find them in the console when I type in help.
Those commands are all of the ones you can access through the console. They can also be accessed using the bitcoin-cli utility and through http posts to the rpc server. You can find the list of commands and how to use them at https://bitcoin.org/en/developer-reference#bitcoin-core-apis

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!