Hello,
I'm implementing the blockchain.info payment API, as documented at
http://blockchain.info/api/api_receiveIt works great but there is something I wonder about. To test it I made a payment using my mobile phone and the Androind Bitcoin Wallet app. Well the actual app shouldn't make a difference, just to provide you with context... Ok, so I mad the payment, and on the receiving side I would like to confirm the payment. I got the calls to my URL from blockchain.info, so that part was working great. However, when I sent some bitcoins from my phone to my site, that is one transaction, and the transaction from blockchain.info is another. And I want to be able to say with some reliability when the transaction from the user can be considered "confirmed". Say 1 confirmation, or 2 or whatever. The problem however is that this is 2 different transactions. In my case, the transaction from my phone to blockchain.info is this one:
http://blockchain.info/tx/73c7fec96e1f8f980280c7783fc45a29e34ff2eb4926504c49ac1ca81c364186And then the transaction from blockchain.info to my destination address is this one:
http://blockchain.info/tx/9a9cece502e4a9b8aae0410b025fcdf63ecaf5a3ff6eb21b144a1f4b9a1d2939Now, the problem is that when I sent the money from my phone, I used the "standard recommended" transaction fee that Bitcoin Wallet suggested, which I immagine most end users would do. This made that transaction confirm much faster than the one where blockchain.info sent the money to me. At the time of writing, the first transaction has 16 confirmations, whereas the other one has 4. There was a time before when I checked and the first one had 7 and the other one 0.
So, for me as a merchant, I get information from blockchain.info about the second transaction, but the one I'm really interested in is the first one. It doesn't matter if the second one takes time, as long as I know that the first one is confirmed, provided that I trust blockchain.info. Which I am ready to do. So, I'm just asking has someone come across this problem? How did you solve it? I'm thinking that it would be possible somehow to follow the second transaction and find the first one, and check how many confirmations that one has, but it feels a bit hackish. Opinions?