'shows the last solved block\'s difficulty.'

def q_getdifficulty(abe, page, chain):

    if (chain is None):
        return 'Shows    the    difficulty    of    the    last    block    in    CHAIN.\n/chain/CHAIN/q/getdifficulty\n'
    target = abe.store.get_target(chain.id)
    return ('' if (target is None) else util.target_to_difficulty(target))
