Author

Topic: Supernode public address balance lookup (Read 902 times)

legendary
Activity: 3766
Merit: 1364
Armory Developer
March 08, 2016, 04:23:30 AM
#6
would you have recommendations for balance lookup/transaction history software that I could make use of?

Depends on what you are looking for. Plenty of block explorers have public APIs. If you are looking for a block explorer running on your own hardware (that's basically what a Bitcoin supernode is), I'm afraid no one realistically offers that kind of capacity but Armory.
newbie
Activity: 3
Merit: 0
March 07, 2016, 02:05:23 AM
#5
https://github.com/goatpig/BitcoinArmory/blob/master/armoryengine/PyBtcWallet.py#L266

This shows you how PyBtcWallet objects register addresses with the backend. You don't need to use a PyBtcWallet object, just register a list of addresses and recover the cppWallet object. You can query that object directly in Python to get specific address objects. Then you can query the address object for history, balance and utxo set.

addr160 are the result of ripemd160(sha256(sha256(pubkey))), with a null byte prefix.

Man I tried, but this is waaay out of my league.
To be honest, I need a simpler way to put an address in and get a balance out. If this is something that you think is not possible in armory until you finish litenode would you have recommendations for balance lookup/transaction history software that I could make use of?


Thanks for your help bud!
legendary
Activity: 3766
Merit: 1364
Armory Developer
March 06, 2016, 01:26:10 AM
#4
https://github.com/goatpig/BitcoinArmory/blob/master/armoryengine/PyBtcWallet.py#L266

This shows you how PyBtcWallet objects register addresses with the backend. You don't need to use a PyBtcWallet object, just register a list of addresses and recover the cppWallet object. You can query that object directly in Python to get specific address objects. Then you can query the address object for history, balance and utxo set.

addr160 are the result of ripemd160(sha256(sha256(pubkey))), with a null byte prefix.
newbie
Activity: 3
Merit: 0
March 06, 2016, 01:04:07 AM
#3
Quote
The question is, how do I strictly provide Armory with the public key of an address I want to look up its balance?

Register the address in a wallet object, query the address history/balance from the wallet.


I'm glad to hear this is possible! Thanks for getting back to me so promptly. Would you have a good sample file to recommend me for getting started, perhaps from the extras folder? I'll be honest I know 0 python but I can get the environment set up and change the address value if there's something close enough  Cool
If that doesn't exist I could also work with a guide if this or or something similar enough was previously addressed. Worst case scenario I could also work with a guide that goes over the basics of registering an address in a wallet object and/or a guide on how to query the address history/balance from the wallet object we created. From there I'm sure I'd probably be able to take it where I need it.

Quote
Alternatively a script that uses the Armory db file to produce the balance or an lmdb database browser software that can be easily used to produce the balance would also be a viable solution if this wasn't possible through Armory's wallet software.

Once I'm done with litenode, i'll reintroduce supernode. With those changes, you can hookup the stand alone Armory DB binary to a HTTP daemon and query arbitrary data using a simple JSON messaging format.

woohoo! this is exciting news (for me)!
Keep on the fantastic work. Myself and the bitcoin community at large appreciate all of your hard and excellent work.

Thanks again for taking the time to help me out!
legendary
Activity: 3766
Merit: 1364
Armory Developer
March 06, 2016, 12:07:43 AM
#2
Quote
The question is, how do I strictly provide Armory with the public key of an address I want to look up its balance?

Register the address in a wallet object, query the address history/balance from the wallet.

Quote
Alternatively a script that uses the Armory db file to produce the balance or an lmdb database browser software that can be easily used to produce the balance would also be a viable solution if this wasn't possible through Armory's wallet software.

Once I'm done with litenode, i'll reintroduce supernode. With those changes, you can hookup the stand alone Armory DB binary to a HTTP daemon and query arbitrary data using a simple JSON messaging format.
newbie
Activity: 3
Merit: 0
March 05, 2016, 10:26:24 PM
#1
Version 0.93.2

Hi all!

It is such a simple question/function that I really tried figuring it out on my own for a very long while before bringing it here. I know the Armory supernode db has the data necessary to retrieve the balance for any given public key. The question is, how do I strictly provide Armory with the public key of an address I want to look up its balance?

Alternatively a script that uses the Armory db file to produce the balance or an lmdb database browser software that can be easily used to produce the balance would also be a viable solution if this wasn't possible through Armory's wallet software.

If you understand what I need, and think I am going about it the completely wrong way, please feel free to provide me with recommendations for software that allows local balance lookup for bitcoin addresses.  

In either case, with the coming 0.94 version which will lack the supernode mode I think this is a very important feature/function to address now as there is little to no documentation/forum threads about this functionality and the days of 0.93.x are seemingly numbered.

Thanks all for taking your time to try to help me out!
Jump to: