I am running bitcoin core on my node. I have two questions.

1) I want to get notified whenever there a new transaction in the blockchain.

2) If I give an address, I should get all the details about the address ( when there is a new payment to the address).

I want to make a callback API for the deposits. Could anyone tell how to do it?


1 Answer 1


You can use Bitcoind's ZMQ integration. It lets you get notify instantly when a transaction is made (whatever the address), you can then do the filtering yourself if you want to pinpoint a specific address.

This setup requires a bit of work to do the transaction parsing and filtering, but lets you run without relying on third parties. You won't get the balances of each deposit address too, just the deposits (but you can get the balancet from elsewhere).

Another solution (that relies on a third party) would be to use blockchain.info's service.

  • Then how to check the balance of a deposit address? I want to get notified whenever there is a payment done to the deposit address.
    – merklexy
    Apr 2, 2018 at 14:17
  • For balances, you could use any explorer. You can also look into watch only support from bitcoind.
    – alcio
    Apr 2, 2018 at 16:11
  • @merklexy Can you request to receive a ZMQ notification for every transaction that affects your wallet. You don't ever need a "balance". Apr 3, 2018 at 16:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.