(args)
Bump the bid of an API order
Bump the bid of an API order
Bump the bid of an API order
def bump(args):
    """Bump the bid of an API order"""
    server_addr = _get_server_addr(args.net, args.server)

    # Fetch the ApiOrder
    order = ApiOrder(server_addr, tls_cert=args.tls_cert, tls_key=args.tls_key)
    order.get(args.uuid, args.auth_token)

    # Bump bid
    try:
        res = order.bump(args.bid)
    except ValueError as e:
        logger.error(e)
        return

    # Print QR code
    qr = qrcode.QRCode()
    qr.add_data(res["lightning_invoice"]["payreq"])
    qr.print_ascii()
def bump ( args ) : server_addr = _get_server_addr ( args . net , args . server ) # Fetch the ApiOrder order = ApiOrder ( server_addr , tls_cert = args . tls_cert , tls_key = args . tls_key ) order . get ( args . uuid , args . auth_token ) # Bump bid try : res = order . bump ( args . bid ) except ValueError as e : logger . error ( e ) return # Print QR code qr = qrcode . QRCode ( ) qr . add_data ( res [ "lightning_invoice" ] [ "payreq" ] ) qr . print_ascii ( )