Bitcoin Forum
December 08, 2016, 04:30:15 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Dynamic wallet triggers  (Read 951 times)
jgarzik
Legendary
*
Offline Offline

Activity: 1470


View Profile
March 17, 2011, 09:12:52 PM
 #1

It seems some ability to script local bitcoin wallet actions would be useful.  For example, give the user the ability to add "rules" to the local wallet which specify operations such as

  • if local block generated, send to address X when it matures
  • if money received to account A, move it to account B
  • if money received to account A, send it to address Y


Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481171415
Hero Member
*
Offline Offline

Posts: 1481171415

View Profile Personal Message (Offline)

Ignore
1481171415
Reply with quote  #2

1481171415
Report to moderator
genjix
Legendary
*
Offline Offline

Activity: 1232


View Profile
March 17, 2011, 09:16:46 PM
 #2

It seems some ability to script local bitcoin wallet actions would be useful.  For example, give the user the ability to add "rules" to the local wallet which specify operations such as

  • if local block generated, send to address X when it matures
  • if money received to account A, move it to account B
  • if money received to account A, send it to address Y


cron job.

Optionally add the ability for bitcoin to call external scripts on trigger actions with the action name + params.
jgarzik
Legendary
*
Offline Offline

Activity: 1470


View Profile
March 17, 2011, 09:49:52 PM
 #3

It seems some ability to script local bitcoin wallet actions would be useful.  For example, give the user the ability to add "rules" to the local wallet which specify operations such as

  • if local block generated, send to address X when it matures
  • if money received to account A, move it to account B
  • if money received to account A, send it to address Y


cron job.

Part of the point is to prevent ugly, useless polling...  ;p

Quote
Optionally add the ability for bitcoin to call external scripts on trigger actions with the action name + params.

Sure.


Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
ryepdx
Hero Member
*****
Offline Offline

Activity: 714



View Profile WWW
March 18, 2011, 05:44:36 AM
 #4

I like the idea. Having some way to natively hook into bitcoin events would be quite helpful, particularly to anyone trying to set up their own merchant script. Depending on how flexible the scripting language proves, it could also potentially allow for crude automated selling without the need for a third party.
LMGTFY
Hero Member
*****
Offline Offline

Activity: 644



View Profile
March 18, 2011, 10:23:43 PM
 #5

I like the idea. Having some way to natively hook into bitcoin events would be quite helpful, particularly to anyone trying to set up their own merchant script. Depending on how flexible the scripting language proves, it could also potentially allow for crude automated selling without the need for a third party.

Subversion, a version control system, has a neat approach: any script or executable can be run when certain events occur: Subversion simply looks for a script or executable with a certain name. It allows for a limited number of parameters, so - transferring Subversion's system to Bitcoin - something like "2.37 bitcoins received in account 'From mining pool' with address '175tVkmMKwwEppDRNnBY2SnTzFUmJJhzZ7'" might trigger a script named "bitcoins-received" that checks the account name, and if the account is called 'From mining pool' the script would then send 2.37 BTC to another address, and then email a Hotmail account, play an mp3 file, or do pretty much anything you can think of...

What I like about Subversion's approach is that we're not tied to any one scripting language: having Python, say, installed doesn't become a requirement of using Bitcoin for anything other than "basic stuff".


This space intentionally left blank.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!