Bitcoin Forum
May 05, 2024, 05:55:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Feature request: Moar RPC!  (Read 1169 times)
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
November 21, 2010, 01:04:54 PM
 #1

A couple of feature requests generated in the course of writing two Bitcoin payment gateways (for VirtueMart/Joomla! and Ubercart/Drupal):

1: Expand RPC capability to support XML-RPC as well as JSON-RPC (XML-RPC has wider language support from what I've seen).

2: Allow extra parameters to be attached to an address at creation and modified later:
  • $uri: JSON/XML-RPC callback URI
  • $total: Transaction total in BTC
  • $timeout: Transaction expiration interval (sec)
  • $minconf: Transaction minimum confirmations required
  • $cert: PEM certificate for callback target server

Additional options passed in should also cover these use cases:

Fire $uri, including parameters for the current balance and the most recent payment received, when:
  • Any payment is received to the address with $minconf confirmations.
  • Balance on address >= $total with $minconf confirmations.
  • $timeout expires without balance on address >= $total and without at least $minconf confirmations.

With this, bitcoind is ready to become a fully-fledged payment back-end for internet commerce.

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
1714931719
Hero Member
*
Offline Offline

Posts: 1714931719

View Profile Personal Message (Offline)

Ignore
1714931719
Reply with quote  #2

1714931719
Report to moderator
BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714931719
Hero Member
*
Offline Offline

Posts: 1714931719

View Profile Personal Message (Offline)

Ignore
1714931719
Reply with quote  #2

1714931719
Report to moderator
1714931719
Hero Member
*
Offline Offline

Posts: 1714931719

View Profile Personal Message (Offline)

Ignore
1714931719
Reply with quote  #2

1714931719
Report to moderator
wumpus
Hero Member
*****
qt
Offline Offline

Activity: 812
Merit: 1022

No Maps for These Territories


View Profile
November 21, 2010, 01:10:53 PM
 #2

Agreed; a callback of some kind would be really neat. Your suggested method is good.

IMO, supporting XMLRPC has less priority, as this functionality could be supported very simply outside of the core with a XMLRPC<->JSONRPC proxy. Also, XMLRPC is a very complex overdesigned beast and seems to be slowly overtaken by simpler RPC mechanisms.

Bitcoin Core developer [PGP] Warning: For most, coin loss is a larger risk than coin theft. A disk can die any time. Regularly back up your wallet through FileBackup Wallet to an external storage or the (encrypted!) cloud. Use a separate offline wallet for storing larger amounts.
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
November 21, 2010, 01:55:23 PM
 #3

Thanks, witchspace. I agree too that XMLRPC is a bloated monster. However, I've been working with the big 3 FOSS CMS systems this past couple of weeks and, looking at what comes bundled with them, find:

WordPress: xmlrpc, no jsonrpc
Drupal: xmlrpc, no jsonrpc
Joomla!: xmlrpc, no jsonrpc

This isn't a huge deal since there's a very functional PHP library available (http://phpxmlrpc.sourceforge.net/) which supports JSON-RPC as both client and server.

The request for that feature boils down to "follow what's popular rather than what's better, in order to drive adoption". I really should have made it #2 since the callback capabilities are far more important.

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
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!