Bitcoin Forum
November 08, 2024, 08:44:24 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Full blockchain, search for values on pub-key (using python)  (Read 878 times)
xychix (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 1


View Profile
December 09, 2015, 02:37:52 PM
Merited by ABCbits (1)
 #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
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3542
Merit: 6886


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: 1


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: 1013


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: 3542
Merit: 6886


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!