bitcoin-api-0.11.0: Provides access to the RPC API of Bitcoin Core

Safe HaskellNone
LanguageHaskell2010

Network.Bitcoin.Api.Blockchain

Synopsis

Documentation

getBlockCount :: Client -> IO Integer Source

Gets the amount of blocks currently in the blockchain, also known as the height of the blockchain.

getBlockHash Source

Arguments

:: Client

Our client context

-> Integer

The height/offset of the block. 0 is the genesis block.

-> IO BlockHash

The hash of the block

Get the hash of a block based on its offset (height).

getBlock Source

Arguments

:: Client

Our session context

-> HexString

Hexadecimal representation of the hash of a block

-> IO Block

The block

Gets a block based on its hash.