Hi everyone !
I use the Blockchain.info receive API and I did a few tests, but the forwarded transactions are never confirmed.
You can see what I mean here :
https://blockchain.info/address/1PbRvpNCshRnjXL23BXKv5LZ1HVNgqQEtGAddress I've sent the money from : 1NLpUQFY6MeKDMezQrvTqVq5v4dCeZECBm
Receiving Address : 1PbRvpNCshRnjXL23BXKv5LZ1HVNgqQEtG
Final Address : 1DiiE1yNZV6QM44HHtEEGkvkrpho2De3P4
So you see that the first part of the transaction has been confirmed several times, but the transaction from the Receiving Address to the Final Address is not confirmed yet. I guess it is because of the 0 fees, but what can I do to make this faster ? Is there a way to define fees with the Generating Receiving Addresses API ?
I'm also using the Double Spends security :
if ($_GET['confirmations'] >= 6) {
//Insert into confirmed payments
echo '*ok*';
} else {
//Insert into pending payments
//Don't print *ok* so the notification resent again on next confirmation
}
But since there is no confirmations from the Receiving Address to the Final Address (which would makes the calls to the callback url), then my code is only called once, so the transaction is never confirmed in my callback page :S
Or is there a way to get the confirmations of the first part of the transaction (from the address i've sent money from to the Receiving address) ? I know the callback will give the two transaction hash (from the address i've sent money from to the Receiving address, and from Receiving address to Final Address), but with a transaction hash, is there an API to get the number of confirmations of this transaction hash ?
Help ^^