(type egg)
(signature "bitcoin egg")
(timestamp 1612269487)
(sxml ((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/bitcoin" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (tags "egg")) (section 2 "bitcoin" (toc)) (section 2 "Description" (p "An interface to " (link "https://en.bitcoin.it/wiki/Bitcoind" "bitcoind") "'s JSON-RPC API.") (p (b "This library is obsolete, unsupported, and may not even work anymore.")) (p "If you feel like adopting it, be my guest.") (p "The source is available " (link "https://git.foldling.org/chicken-bitcoin.git" "here") ".")) (section 2 "Requirements" (ul (li (int-link "/eggref/4/uri-common" "uri-common")) (li (int-link "/eggref/4/http-client" "http-client")) (li (int-link "/eggref/4/medea" "medea")))) (section 2 "Usage" (p "Function names and signatures match those listed in the " (link "https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list" "bitcoind API reference") ". JSON responses are translated into Scheme datatypes according to " (int-link "/eggref/4/medea" "medea") "'s conversion rules.") (p "When an error response is received from bitcoind, an exception of type " (tt "(exn bitcoin)") " is raised.") (pre "   > (use bitcoin)\n   > (define c (make-bitcoind-connection \"http://user:pass@localhost:8332\"))\n   > (getblockcount c)\n   215673\n   > (getblock c 123456)\n   \"0000000000002917ed80650c6174aac8dfc46f5fe36480aaef682ff6cd83c3ca\"\n   > (getinfo c)\n   ((version . 70200)\n    (protocolversion . 60002)\n    (walletversion . 60000)\n    (balance . 12.0)\n    (blocks . 215673)\n    (connections . 0)\n    (proxy . \"\")\n    (difficulty . 2979636.61693807)\n    (testnet . #f)\n    (keypoololdest . 1357260660)\n    (keypoolsize . 108)\n    (paytxfee . 0.0)\n    (errors . \"\"))")) (section 2 "License" (p "Public Domain"))))
