3

Using the blockchain.info API, how can I check the transactions from one address to another, including the number of confirmations?

Clarification: I have one address let us say. I want to programmatically check new transactions, without running a wallet and a full node on my computer. So my address is fixed. The sender address is also fixed. So, given 2 addresses, get all the transactions from one to the other. And ideally including the number of confirmations.

3
  • Can you clarify, are you just looking for all the TxIDs? UTXOs only? Need it be Blockchain.info? Sep 10, 2015 at 3:39
  • Additional point to clarify, there is no from address, so you don't have an easy way of looking for transactions from one address to another, which is how I understand the question.
    – Drazisil
    Sep 10, 2015 at 5:22
  • @Drazisil That's right; the easiest way I'd know is to get the TxIDs for from and to, Txs_from and Txs_to, respectively. Then find the intersection of these two TxID sets Sep 10, 2015 at 13:49

1 Answer 1

1

You can use pybitcointools history(address). Note that this function has bugs, so try my fork instead.

Or, the API request for 12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX would be:

https://blockchain.info/address/12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX?format=json&offset=0

If there's more than 50 results, you'd change offset=50.

I'll provide more details if required.

My personal recommendation would be to use this API call, as there's no offset issues:

https://bitcoin.toshi.io/api/v0/addresses/12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX/transactions
1
  • @Solver I'll check now mate, just so I know, are you familiar with Python? If so, I'll post the code instead of "pseudocoding" the answer Sep 10, 2015 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.