Title: Retrieve my bitcoin data on blockchain.info using Excel VBA Post by: Latinoz71 on May 08, 2015, 10:37:00 PM I got a web wallet on blockchain.info. It has several addres.
How can i retrieve my transactions (sent and received), and for every movement some data (date and time, amount, hash, MY NOTE, address RECEIVED...) using their api and my excel VBA sheet? I imagine reading on internet that i must use some JSON request and read the site's answer, but i don't know how to start. The API for all are described here: https://blockchain.info/it/api/blockchain_api Can anyone here help me please? After 2day i'm able to put json string in a Excel-VBA variable. Here's the code: Code: Option Explicit In the retrieved string i can't find my "NOTE" as i wrote in the page "My Wallet --> Transactions (recent)" near the yellow icon with a green plus (+) into. Where are them? Tnx in advance at all. Title: Re: Retrieve my bitcoin data on blockchain.info using Excel VBA Post by: someguy123 on May 08, 2015, 11:06:01 PM In the retrieved string i can't find my "NOTE" as i wrote in the page "My Wallet --> Transactions (recent)" near the yellow icon with a green plus (+) into. Where are them? I don't think they have an API which includes the "notes". They aren't put into the actual blockchain, they're on BC.INFO's database instead.Each transaction has inputs and outputs: If a transaction has an input with your address on it, that means you are SENDING coins If a transaction has an output with your address on it, that means you are RECEIVING coins To get total amount: for amounts sent in a transaction, look for inputs with your address on, total the values of those for amounts received in a transaction, look for outputs with your address on, total the values of these Title: Re: Retrieve my bitcoin data on blockchain.info using Excel VBA Post by: Latinoz71 on May 08, 2015, 11:15:42 PM Many thanks for the rapid answer. The problem is i don't know how navigate into a json response string using VBA and Excel.
Title: Re: Retrieve my bitcoin data on blockchain.info using Excel VBA Post by: hexafraction on May 08, 2015, 11:18:59 PM You could work with ScriptControl and/or JScriptTypeInfo (as JSON is just JavaScript that describes an object):
Code: Option Explicit Example usage: Code: JsonString = "{""key1"": ""val1"", ""key2"": { ""key3"": ""val3"" } }" source (http://stackoverflow.com/a/7300926) |