'List the payment requests you made.'

@command('w')
def listrequests(self, pending=False, expired=False, paid=False):

    out = self.wallet.get_sorted_requests(self.config)
    if pending:
        f = PR_UNPAID
    elif expired:
        f = PR_EXPIRED
    elif paid:
        f = PR_PAID
    else:
        f = None
    if (f is not None):
        out = filter((lambda x: (x.get('status') == f)), out)
    return map(self._format_request, out)
