'shows the amount ever sent from a given address.'

def q_getsentbyaddress(abe, page, chain):

    addr = wsgiref.util.shift_path_info(page['env'])
    if ((chain is None) or (addr is None)):
        return 'returns    amount    of    money    sent    from    given    address\n/chain/CHAIN/q/getsentbyaddress/ADDRESS\n'
    if (not util.possible_address(addr)):
        return 'ERROR:    address    invalid'
    (version, hash) = util.decode_address(addr)
    return format_satoshis(abe.store.get_sent(chain.id, hash), chain)
