@hackage network-bitcoin1.9.1
An interface to bitcoind.
Categories
License
BSD-3-Clause
Maintainer
Matt Wraith <matt@bitnomial.com>
Links
Versions
Installation
Tested Compilers
Dependencies (14)
Dependents (5)
@hackage/electrs-client, @hackage/acme-everything, @hackage/lnd-client, @hackage/haskoin-bitcoind, @hackage/btc-lsp
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.