Retrieving BitCoin Payments, Confirmation Question

1

I'm receiving BitCoin payments via the blockchain.info api.

I notice it sends a confirmations parameter, and it also continues to call the callback url until the response is *ok*.

Instead of manually checking every x minutes via a third-party site to see whether or not txid has x confirmations, would it be possible to just not output *ok* until there is x confirmations?

I'm not sure whether or not the blockchain stops sending the callback, and was wondering if this is possible or not.

Cheers.

BlockChain

Posted 2015-08-03T09:36:28.397

Reputation: 13

Answers

0

Yes, you can do that. Yes, it will eventually stop sending callbacks.

Expected Response

In order to acknowledge successful processing of the callback the server should respond with the text *ok*. If the server responds with anything else the callback will be resent again every new block (approximately every 10 minutes) up to 1000 times (1 week).

https://blockchain.info/api/api_receive

Nick ODell

Posted 2015-08-03T09:36:28.397

Reputation: 26 536

Thanks for that. I implemented it a few days ago and seems to be working fine.BlockChain 2015-08-07T09:38:26.173