source: project/wiki/eggref/4/bitcoin @ 36801

Last change on this file since 36801 was 36801, checked in by evhan, 13 months ago

wiki/eggref: update docs/formatting/urls and eggref/5/{r7rs,fancypants,chicken-belt}

File size: 1.4 KB
Line 
1[[tags: egg]]
2
3== bitcoin
4
5[[toc:]]
6
7== Description
8
9An interface to [[https://en.bitcoin.it/wiki/Bitcoind|bitcoind]]'s JSON-RPC API.
10
11'''This library is obsolete, unsupported, and may not even work anymore.'''
12
13If you feel like adopting it, be my guest.
14
15The source is available [[https://git.foldling.org/chicken-bitcoin.git|here]].
16
17== Requirements
18
19* [[/eggref/4/uri-common|uri-common]]
20* [[/eggref/4/http-client|http-client]]
21* [[/eggref/4/medea|medea]]
22
23== Usage
24
25Function names and signatures match those listed in the
26[[https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list|bitcoind API reference]].
27JSON responses are translated into Scheme datatypes according to [[/eggref/4/medea|medea]]'s conversion rules.
28
29When an error response is received from bitcoind, an exception of type {{(exn bitcoin)}} is raised.
30
31    > (use bitcoin)
32    > (define c (make-bitcoind-connection "http://user:pass@localhost:8332"))
33    > (getblockcount c)
34    215673
35    > (getblock c 123456)
36    "0000000000002917ed80650c6174aac8dfc46f5fe36480aaef682ff6cd83c3ca"
37    > (getinfo c)
38    ((version . 70200)
39     (protocolversion . 60002)
40     (walletversion . 60000)
41     (balance . 12.0)
42     (blocks . 215673)
43     (connections . 0)
44     (proxy . "")
45     (difficulty . 2979636.61693807)
46     (testnet . #f)
47     (keypoololdest . 1357260660)
48     (keypoolsize . 108)
49     (paytxfee . 0.0)
50     (errors . ""))
51
52== License
53
54Public Domain
Note: See TracBrowser for help on using the repository browser.