Bitcoin Forum
May 11, 2024, 11:36:46 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: call back functionality in Bitcoin core Wallet  (Read 169 times)
nomantariq18 (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 1


View Profile
April 04, 2018, 04:39:39 PM
Merited by suchmoon (1)
 #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?
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715470606
Hero Member
*
Offline Offline

Posts: 1715470606

View Profile Personal Message (Offline)

Ignore
1715470606
Reply with quote  #2

1715470606
Report to moderator
1715470606
Hero Member
*
Offline Offline

Posts: 1715470606

View Profile Personal Message (Offline)

Ignore
1715470606
Reply with quote  #2

1715470606
Report to moderator
1715470606
Hero Member
*
Offline Offline

Posts: 1715470606

View Profile Personal Message (Offline)

Ignore
1715470606
Reply with quote  #2

1715470606
Report to moderator
starmyc
Full Member
***
Offline Offline

Activity: 198
Merit: 130

Some random software engineer


View Profile
April 04, 2018, 05:21:12 PM
 #2

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.

Hi, I'm just some random software engineer.
You can check my projects: Bitcoin & altcoin balances/addresses listing dumps: https://balances.crypto-nerdz.org/
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
April 04, 2018, 06:24:34 PM
Merited by suchmoon (1)
 #3

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.

starmyc
Full Member
***
Offline Offline

Activity: 198
Merit: 130

Some random software engineer


View Profile
April 04, 2018, 08:27:36 PM
 #4

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.

Hi, I'm just some random software engineer.
You can check my projects: Bitcoin & altcoin balances/addresses listing dumps: https://balances.crypto-nerdz.org/
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 05, 2018, 05:01:32 AM
 #5

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://bitcointalk.org/index.php?topic=448565.msg4933145#msg4933145 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.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!