Author

Topic: call back functionality in Bitcoin core Wallet (Read 171 times)

HCP
legendary
Activity: 2086
Merit: 4314
That's really splitting hairs... If the "external program" is a simple script that launches "curl" or something similar... then yes, you are effectively "calling back an URL".  And it certainly doesn't require patching Bitcoin Core.

You can definitely use blocknotify and walletnotify as mentioned by Danny. Something like the setup described here: https://bitcointalksearch.org/topic/m.4933145 would achieve the desired result.

Even if it is calling an "external program", the end result is that a URL is called when a transaction occurs... as per the OPs requirement.
full member
Activity: 198
Merit: 130
Some random software engineer
starmyc is incorrect.

This is harsh (and incorrect too Smiley ).

You have BOTH:
  • blocknotify
and
  • walletnotify

blocknotify will execute whenever Bitcoin Core receives a new block.

walletnotify will execute whenever Bitcoin Core receives a transaction that is associated with an address that belongs to the wallet that Bitcoin Core is running with.

Between the two of those, along with the other RPC commands available, you should be able to build something robust.

The question is about calling back an URL, and those calls can only be used to launch an external program, not call an url as asked. You'll still need a 3rd party program to answer the initial need, as I proposed initially.
legendary
Activity: 3416
Merit: 4658
starmyc is incorrect.


You have BOTH:
  • blocknotify
and
  • walletnotify


blocknotify will execute whenever Bitcoin Core receives a new block.

walletnotify will execute whenever Bitcoin Core receives a transaction that is associated with an address that belongs to the wallet that Bitcoin Core is running with.

Between the two of those, along with the other RPC commands available, you should be able to build something robust.

full member
Activity: 198
Merit: 130
Some random software engineer
is there any functionality that when transaction received in the wallet than it call a specific URL and update transaction in my local DB?

No, there is no such kind of thing, but that would be easy to add in my opinion, patching Bitcoin Core or using a third party software dedicated to this task.
newbie
Activity: 1
Merit: 1
is there any functionality that when transaction received in the wallet than it call a specific URL and update transaction in my local DB?
Jump to: