Lists block hashes from '', up to the last checkpoint, sorted with decreasing fitness. Without arguments it returns the head of the chain. Optional arguments allow to return the list of predecessors of a given block or of a set of blocks.
A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.