3
I am a merchant that accepts bitcoins, and I'm building my own desktop client for receiving them in Java.
When I receive a transaction, I would like to be able to see in my client how much bitcoin is stored in the address that I am receiving from.
I have the full blockchain downloaded on my computer.
How can I access the balance of an address from the blockchain? I would like to be able to do this offline by accessing the blockchain stored on my hard drive.
Thanks in advance
Your example code uses the Bitcoin testnet, while the OP wants to know how to check the balance from his locally-downloaded blockchain. Can you update your answer accordingly? – Alin Tomescu – 2018-01-31T00:15:34.850