root/doc/API.txt

Revision 188:81e06697873a, 1.2 kB (checked in by klai@…, 3 years ago)

Add some minor files to repo

Line 
1
2
3This is a brief, high level summary of the Tycoon API and
4architecture. Everything described here is implemented and working,
5but the system has not been extensively tested. All communications are
6implemented as XML-RPC calls.
7
8There are three main components: the bank, auctioneers, and the
9service location service (SLS). The operations are described in more
10detail below.
11
12Bank operations:
13
14transfer(
15    String account_from, String account_to, double amount,
16    Date expiration, byte[] signature)
17
18getBalance(String account, byte[] signature)
19
20getHistory(String account,byte[] signature)
21
22createAccount(
23    String sponsor, String newAccountName, double bid, String publickey,
24    byte[] signature, byte[] newAcctSig)
25
26deleteAccount(String account,byte[] signature)
27
28
29Auctioneer operations:
30
31create_account(
32      user_name, local_account_name, public_key, bank_receipt, bank_signature)
33
34fund(account_name, interval, bank_receipt, bank_signature, time_stamp,
35     signature)
36
37refund(account_name, requested_refund, time_stamp, signature)
38
39delete_account(account_name, timestamp, signature)
40
41get_account_status(account_name, time_stamp, signature):
42
43
44register_service(key, value):
45unregister_service(port_number, key):
46query(key):
Note: See TracBrowser for help on using the browser.