#!/usr/bin/env python3 import sys from libs.paylibClass import Transaction # Get args try: recipient = sys.argv[1] amount = int(sys.argv[2]) if len(sys.argv) > 3: comment = sys.argv[3] else: comment = "" except Exception as e: print("Please enter the recipient's public and the amount\n" + str(e)) sys.exit(1) # Create transaction and send it trans = Transaction(recipient, amount, comment) trans.send()