Is there documentation on the table setup?
How do I query information on a particular address? (total received balance, transaction history,etc)
|
|
|
Oh yeah I noticed that part of your code, I just assumed that there was a quick way of going about this since it takes a few seconds to scan the block chain for one address and I'm looking for a way to scan and update the database for multiple addresses. Does that sound possible or am I stuck with this route you presented me? Thanks for your help btw I appreciate it.
Oh yeah I noticed that part of your code, I just assumed that there was a quick way of going about this since it takes a few seconds to scan the block chain for one address and I'm looking for a way to scan and update the database for multiple addresses. Does that sound possible or am I stuck with this route you presented me? Thanks for your help btw I appreciate it.
You can use as many addAddress_1_() calls as you want before a rescan, and the rescan will still take the same amount of time. Load 20 addresses into your wallet before loading the blockchain, and it will take the same time as if you loaded in 10,000. After the blockchain is loaded, if you add any new addresses to the wallet, the chain will be re-scanned on the "scanBlockchainForTx()" call, and again, it won't matter how many addresses that is, it'll take the same amount of time. Thanks mate! that cleared things up. Nice work btw
|
|
|
How does one just query the balance of a Bitcoin address with armory? is there any calculations involved(like looping over tx history and sum up a balance) or can I just call it and print out a simple balance?
Im' sure a lot of programmers could benefit the solution to this question to write their own software to use armory for like making their own Blockchain.info website or w/e.
The code was in my example, but I guess my example was too long. So here's an extraction of it. from armoryengine import *
cppWallet = Cpp.BtcWallet() cppWallet.addAddress_1_( addrStr_to_hash160('1EbAUHsitefy3rSECh8eK2fdAWTUbpVUDN') ) # addrStr TheBDM.registerWallet(cppWallet) BDM_LoadBlockchainFile() TheBDM.scanBlockchainForTx(cppWallet)
fullBalance = cppWallet.getFullBalance()
print '\n\nBalance of this wallet:', coin2str(fullBalance)
Oh yeah I noticed that part of your code, I just assumed that there was a quick way of going about this since it takes a few seconds to scan the block chain for one address and I'm looking for a way to scan and update the database for multiple addresses. Does that sound possible or am I stuck with this route you presented me? Thanks for your help btw I appreciate it.
|
|
|
Okay well thanks for clearing things up for me guys, I see where you guys are going for......Its all clear to me meow
|
|
|
How does one just query the balance of a Bitcoin address with armory? is there any calculations involved(like looping over tx history and sum up a balance) or can I just call it and print out a simple balance?
Im' sure a lot of programmers could benefit the solution to this question to write their own software to use armory for like making their own Blockchain.info website or w/e.
|
|
|
I wanted to turn my domain MiningFarm.com .info .mobi into a full fledge PC and mobile game but I'm not the creative type so when i came time to program nothing came out. Maybe we can join forces you sound like you have alot of great ideas as far as gameplay and the overall game.. What were you going to build this off of? Is this a text, 2d or 3d based game? Do you need a programmer? How do you plan on monetizing off this idea? Feel free to PM me for details you'd rather keep discreet. cheers mate!
|
|
|
Is it possible to use electrum in python(or another language?) to query the balance of addresses other then one that is found in the wallet(aka query the balance of an address I don't own)
|
|
|
Armory is perfect this. It is C++ accessed in Python (via SWIG). You only ever touch python. I'm not at my development computer now but there is example code on my github page (though many of the examples were created before RAM reduction, they will mostly still work) from armoryengine import *
print '\n\nLoading Blockchain from:', BLK0001_PATH BDM_LoadBlockchainFile() # optional argument to specify blk0001.dat location print 'Done!'
print '\n\nCurrent Top Block is:', TheBDM.getTopBlockHeader().getBlockHeight() TheBDM.getTopBlockHeader().pprint()
tx = TheBDM.getTxByHash( hex_to_binary('9c633b5689e462ddf3d52a6edc64226cedd1e1749d0b8e2f70cd9550bfa74c72') ) tx.pprint()
# Create and register the wallet before the LoadBlockchainFile call, to merge the scans # For now, this will rescan the blockchain cppWallet = Cpp.BtcWallet() cppWallet.addAddress_1_( hex_to_binary('9c633b56899c633b56899c633b56899c633b5689') ) # hash160 TheBDM.registerWallet(cppWallet) TheBDM.scanBlockchainForTx(cppWallet) print cppWallet.getSpendableBalance()
unspentTxOuts = cppWallet.getSpendableTxOutList() for utxo in unspentTxOuts: utxo.pprintOneLine()
(note, this code is notional since I can't test it where I am, but the syntax is nearly correct) When I get home later, I can post more example code for how to access what you want. If you tell me what you're trying to do with it, I can write more directed code samples for you. Nice I heard about armory but I thought it was just a GUI client with advanced features. I'll try it out with python see how it is.
|
|
|
Bitcoincard is like a smartphone but the size of the creditcard? Somehow I don't believe that is a reasonable goal or even possible with out some advancements in manufactured technology.
|
|
|
Libbitcoin is quite confusing even looking through the source code, are there any alternatives to libbitcoin that could help me query the blockchain?
|
|
|
Why not just have people make payments to offline addresses. When they fill in their shipping address there is an extra box for the bitcoin address they make the payment from. This way MyDoodads.com can verify the payment via the blockchain by using a PHP spider on blockexplorer from an alternate internet connection. Totally automated and hacker has no access to the stores offline wallet. Evil hacker can deface the site, load an exploit pack onto the site to attack vulnerable users but can't steal any money because no money goes through the site. Stealing names and shipping addresses has no immediate compensation reward unless I'm selling some shady or embarrassing products.
What if an attacker rewrote the recorded bitcoins addresses(SQLi) to have sent money routed to their BTC address instead? unless everything was strictly email then that might be different.
|
|
|
So how do I use this libbitcoin thing, for example something simple like a balance of a particular address, or a list of details of a particular address? (with python)
|
|
|
Nice responses mates, libbitcoin should work fine for what i need
|
|
|
How do I read the Bitcoin blockchain with an api or library with a programming language like php, python or java?
|
|
|
Free electricity = free money. I think we've all had these thoughts at some point.
Not that anyone mentioned free electricity, i for one had the preassumption that solar panels degrade in effciency and can obviously bust. Im still willing to pursue this idea just not with other peoples money when they are expecting to be paid back in less then a year or so. I just dont have $2000 to throw down to participate in a fun solar power bitcoin mining rig at the moment ;(
|
|
|
Hello Xenland,
I will search for ajax-vulnerabilities too.
kind regards, a nice guy
Excellent, excellent, I'll be contacting you before the end of the month in that case.
|
|
|
arduinos are cool but their limitations make your imagination divide by logic..... Beagle bones are my new favorite toy.
|
|
|
No Angel by Jay Dobyns (ATF agent that went deep undercover in the Hell's Angels) Good so far.
Ooooh let me guess what happens, the ATF agent becomes addicted to coke, drugs and violence and becomes a double agent.... happens all the time
|
|
|
DeathandTaxes, ruining dreams just like death and taxes Agreed, This is way over my head for a loan. Sorry, lenders look at financials. They don't deal in sentimentalities. You should be happy. D&T has saved you from a poor financial decision. I'm always happy and I am very grateful of DeathAndTaxes insightful knowledge that i was clearly unaware of, just disappointed with this particular situation outcome.
|
|
|
DeathandTaxes, ruining dreams just like death and taxes Agreed, This is way over my head for a loan.
|
|
|
|