network-bitcoin

An interface to bitcoind.

http://github.com/bitnomial/network-bitcoin

Latest on Hackage:1.9.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

This can be used to send Bitcoins, query balances, etc. It requires the Bitcoin daemon to be running and accessible via HTTP.

import Network.Bitcoin

main = do
   client <- getClient "http://127.0.0.1:8332" "user" "password"
   balance <- getBalance client
   putStrLn $ show balance ++ " BTC"

To learn more about Bitcoin, see http://www.bitcoin.org.