<p>Yes you can.</p>

<ol>
<li><p>If you're using a third party service to store your coins, they usually allow you to add a callback address when generating a new address, where they trigger a POST request to your server with a JSON object containing transaction details. Here are some examples:</p>

<ol>
<li>Coinbase's API: <a href="https://developers.coinbase.com/api#callbacks" rel="nofollow">https://developers.coinbase.com/api#callbacks</a></li>
<li>Blockchain.info's API: <a href="https://blockchain.info/api/api_receive" rel="nofollow">https://blockchain.info/api/api_receive</a></li>
</ol></li>
<li><p>If you're rolling your own addresses, you can use some block explorers to notify you of new transactions to existing addresses. One I know of is <a href="https://chain.com/notifications" rel="nofollow">Chain.com's notification</a> system. I haven't used this, but Chain is quite a developer friendly service.</p></li>
</ol>

<p>Personally, I've only used Coinbase's API, and It worked quite well for me. I trust Coinbase to take care of my coins better than myself, but if you're more paranoid and better at security than I am, use Chain.</p>

<p>IMHO I don't recommend Blockchain.info for anything. Their service really isn't that polished from all I've seen, and I just get a bad vibe from them. Coinbase has very nice support and a developer community where you can talk about all the problems you face.</p>

CC BY-SA 3.0
2015-07-20T22:17:37.037Z
Full Disclosure: I'm BlockCypher's Developer Advocate, and therefore quite biased. That said, just wanted to point to two additional APIs we provide that might be useful for this case: Payment Forwarding (http://dev.blockcypher.com/#payment-forwarding) allows you to generate a new address and automatically forward along to a predetermined final address, while our WebHooks (http://dev.blockcypher.com/#events-and-hooks) are reliable and defiintely can be filtered to only show new transactions to a new address.
Josh Cincinnati
CC BY-SA 3.0
2015-05-20T22:36:14.157Z
2015-05-21T19:01:50.613Z
2015-05-21T19:01:50.613Z
Amin Shah Gilani
<p>I'm creating a WordPress plugin for bitcoin donations. I want it to behave similar to the checkout process for many bitcoin shopping carts, where the QR code is displayed then once the user scans and sends bitcoin to the address, it swaps out with a "thank you" message.</p>

<p>I was thinking of using messages attached to the donation, or a specific amount for each donation, but it's getting complicated. How can I have a single receiving address for each donation, yet have the system know when the user Joe has donated vs when Bob donated, so they both get thank you message at the appropriate time. </p>

<p>Is this possible, or do I need to generate a middleman address for every transaction, and just check the balance on that one?</p>

<p>I only want to go this route so I'm not responsible for a screw up if someone donates, the site glitches, and the private key to the middleman address is lost before the funds can be forwarded on to the final receiving address.</p>

CC BY-SA 3.0
2015-05-20T17:11:18.387Z
It seems best to just use blockchains api for this exact thing https://blockchain.info/api/api_receive
Branndon
<transactions><api>
Public API to verify transactions to a unique address as they occur?
Branndon
# Public API to verify transactions to a unique address as they occur?

(Asked by: username_0 on 2015-05-20)

I'm creating a WordPress plugin for bitcoin donations. I want it to behave similar to the checkout process for many bitcoin shopping carts, where the QR code is displayed then once the user scans and sends bitcoin to the address, it swaps out with a "thank you" message.

I was thinking of using messages attached to the donation, or a specific amount for each donation, but it's getting complicated. How can I have a single receiving address for each donation, yet have the system know when the user Joe has donated vs when Bob donated, so they both get thank you message at the appropriate time.

Is this possible, or do I need to generate a middleman address for every transaction, and just check the balance on that one?

I only want to go this route so I'm not responsible for a screw up if someone donates, the site glitches, and the private key to the middleman address is lost before the funds can be forwarded on to the final receiving address.

**Tags:** transactions, api

> **Comments:**
> **username_0**: It seems best to just use blockchains api for this exact thing https://blockchain.info/api/api_receive  

---

## 1 answers

### Answer by username_1 on 2015-05-20. Score: 1

Yes you can.

1. If you're using a third party service to store your coins, they usually allow you to add a callback address when generating a new address, where they trigger a POST request to your server with a JSON object containing transaction details. Here are some examples:

   1. Coinbase's API: <https://developers.coinbase.com/api#callbacks>
   2. Blockchain.info's API: <https://blockchain.info/api/api_receive>
2. If you're rolling your own addresses, you can use some block explorers to notify you of new transactions to existing addresses. One I know of is [Chain.com's notification](https://chain.com/notifications) system. I haven't used this, but Chain is quite a developer friendly service.

Personally, I've only used Coinbase's API, and It worked quite well for me. I trust Coinbase to take care of my coins better than myself, but if you're more paranoid and better at security than I am, use Chain.

IMHO I don't recommend Blockchain.info for anything. Their service really isn't that polished from all I've seen, and I just get a bad vibe from them. Coinbase has very nice support and a developer community where you can talk about all the problems you face.

> **Comments:**
> **username_2**: Full Disclosure: I'm BlockCypher's Developer Advocate, and therefore quite biased. That said, just wanted to point to two additional APIs we provide that might be useful for this case: Payment Forwarding (http://dev.blockcypher.com/#payment-forwarding) allows you to generate a new address and automatically forward along to a predetermined final address, while our WebHooks (http://dev.blockcypher.com/#events-and-hooks) are reliable and defiintely can be filtered to only show new transactions to a new address.  

---

