move get_address logic to counterwalletd
enhance API docs