I'm a merchant that is currently developing program that I will use for receiving transactions for my business.
I would like my program to be able to check how much Bitcoin the address sending to me has. I have the entire blockchain downloaded to the computer.
Ideally I'd like something that works like this:
String address = "1PSxTeWTVgomscit2BoViZYKSc4QoyrmAk"; Double balance = blockChain.getBalance(address);
Is this possible? I am having a difficult time finding a way to do this using the blockchain stored on my computer. It seems like it would be fairly easy to do this just using blockchain.info's API, but I would like to keep the process contained on my computer.
Thanks in advance.