Bitcoin Forum
May 07, 2024, 04:30:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Dynamic wallet triggers  (Read 1258 times)
jgarzik (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1091


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, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
1715056204
Hero Member
*
Offline Offline

Posts: 1715056204

View Profile Personal Message (Offline)

Ignore
1715056204
Reply with quote  #2

1715056204
Report to moderator
1715056204
Hero Member
*
Offline Offline

Posts: 1715056204

View Profile Personal Message (Offline)

Ignore
1715056204
Reply with quote  #2

1715056204
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715056204
Hero Member
*
Offline Offline

Posts: 1715056204

View Profile Personal Message (Offline)

Ignore
1715056204
Reply with quote  #2

1715056204
Report to moderator
genjix
Legendary
*
Offline Offline

Activity: 1232
Merit: 1072


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 (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1091


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, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
ryepdx
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500


View Profile
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
Merit: 502



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:  

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