Bitcoin Forum
June 09, 2024, 06:50:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 [65] 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 ... 146 »
1281  Bitcoin / Project Development / Re: [ANNOUNCE] Abe 0.6: Open Source Block Explorer Knockoff on: April 25, 2012, 06:25:21 AM
Is there documentation on the table setup?

How do I query information on a particular address? (total received balance, transaction history,etc)
1282  Bitcoin / Development & Technical Discussion / Re: Reading the block chain with a library? on: April 25, 2012, 03:57:50 AM
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
1283  Bitcoin / Development & Technical Discussion / Re: Reading the block chain with a library? on: April 25, 2012, 12:02:20 AM
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.

Code:
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.
1284  Bitcoin / Project Development / Re: VirtualMiner 2.0 - Discussion on: April 24, 2012, 06:24:50 AM
Okay well thanks for clearing things up for me guys, I see where you guys are going for......Its all clear to me meow
1285  Bitcoin / Development & Technical Discussion / Re: Reading the block chain with a library? on: April 24, 2012, 05:55:41 AM
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.
1286  Bitcoin / Project Development / Re: VirtualMiner 2.0 - Discussion on: April 23, 2012, 11:07:04 PM
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!
1287  Bitcoin / Electrum / Re: [ANNOUNCE] Electrum - a new thin client on: April 23, 2012, 11:03:27 PM
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)
1288  Bitcoin / Development & Technical Discussion / Re: Reading the block chain with a library? on: April 23, 2012, 08:31:30 PM
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)

Code:
   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.
1289  Bitcoin / Development & Technical Discussion / Re: Dedicated bitcoin devices - dealing with untrusted networks on: April 23, 2012, 08:20:52 PM
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.
1290  Bitcoin / Development & Technical Discussion / Re: Reading the block chain with a library? on: April 23, 2012, 08:49:31 AM
Libbitcoin is quite confusing even looking through the source code, are there any alternatives to libbitcoin that could help me query the blockchain?
1291  Bitcoin / Development & Technical Discussion / Re: Want to build a website, 0 coding experience... Should I? on: April 23, 2012, 06:01:50 AM
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.
1292  Bitcoin / Development & Technical Discussion / Re: Reading the block chain with a library? on: April 23, 2012, 05:54:10 AM
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)
1293  Bitcoin / Development & Technical Discussion / Re: Reading the block chain with a library? on: April 22, 2012, 08:35:55 PM
Nice responses mates, libbitcoin should work fine for what i need
1294  Bitcoin / Development & Technical Discussion / Reading the block chain with a library? on: April 22, 2012, 06:54:57 AM
How do I read the Bitcoin blockchain with an api or library with a programming language like php, python or java?
1295  Economy / Lending / Re: [Withdrawed Offer] Butterfly labs & solar loan on: April 17, 2012, 09:04:12 AM
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 ;(
1296  Bitcoin / Project Development / Re: Service: security audits on: April 17, 2012, 04:43:46 AM
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.
1297  Other / Off-topic / Re: Anyone use Arduino? on: April 17, 2012, 03:45:36 AM
arduinos are cool but their limitations make your imagination divide by logic..... Beagle bones are my new favorite toy.
1298  Other / Off-topic / Re: Books - What are you reading? on: April 17, 2012, 03:43:35 AM
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 Wink
1299  Economy / Lending / Re: Butterfly labs & solar loan on: April 17, 2012, 03:38:03 AM
DeathandTaxes, ruining dreams just like death and taxes  Cheesy

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.
1300  Economy / Lending / Re: Butterfly labs & solar loan on: April 17, 2012, 02:18:34 AM
DeathandTaxes, ruining dreams just like death and taxes  Cheesy

Agreed, This is way over my head for a loan.
Pages: « 1 ... 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 [65] 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 ... 146 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!