Blockchain.info API - Check transactions from one address to another

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.

user27928

Posted 2015-09-09T15:32:33.720

Reputation:

Can you clarify, are you just looking for all the TxIDs? UTXOs only? Need it be Blockchain.info?Wizard Of Ozzie 2015-09-10T03:39:41.200

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 2015-09-10T05:22:19.830

@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 setsWizard Of Ozzie 2015-09-10T13:49:25.490

Answers

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

Wizard Of Ozzie

Posted 2015-09-09T15:32:33.720

Reputation: 4 535

@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 answerWizard Of Ozzie 2015-09-10T13:46:27.430