This repository has been archived on 2020-12-03. You can view files and clone it, but cannot push or open issues or pull requests.
py-gva/pay.py

22 lines
428 B
Python
Executable File

#!/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()