bitcoin-api-0.11.1: Provides access to the RPC API of Bitcoin Core
Network.Bitcoin.Api.Misc
data BitcoinInfo Source
Constructors
Fields
What version of bitcoind are we running?
What is bitcoind's current protocol number?
What version is the wallet?
How much money is currently in the wallet?
The number of blocks in our chain.
How many peers are we connected to?
A blank string if we're not using a proxy.
The difficulty multiplier for bitcoin mining operations.
Are we on the test network (as opposed to the primary bitcoin network)?
The timestamp of the oldest key in the key pool.
The size of the key pool.
How much do we currently pay as a transaction fee?
If the wallet is unlocked, the number of seconds until a re-lock is needed.
Any alerts will show up here. This should normally be an empty string.
Instances
walletVersion :: Lens' BitcoinInfo Integer Source
unlockedUntil :: Lens' BitcoinInfo (Maybe Integer) Source
transactionFeePaid :: Lens' BitcoinInfo Integer Source
proxy :: Lens' BitcoinInfo Text Source
protocolVersion :: Lens' BitcoinInfo Integer Source
onTestNetwork :: Lens' BitcoinInfo Bool Source
numConnections :: Lens' BitcoinInfo Integer Source
numBlocks :: Lens' BitcoinInfo Integer Source
keyPoolSize :: Lens' BitcoinInfo Integer Source
keyPoolOldest :: Lens' BitcoinInfo Integer Source
generationDifficulty :: Lens' BitcoinInfo Double Source
bitcoindErrors :: Lens' BitcoinInfo Text Source
bitcoinVersion :: Lens' BitcoinInfo Integer Source
balance :: Lens' BitcoinInfo Integer Source
getInfo :: Client -> IO BitcoinInfo Source