Closed Endogen closed 6 years ago
Works now
what was the solution?
I don't know anymore :-D Too long ago but this was my working code:
from monero.wallet import Wallet
from monero.backends.jsonrpc import JSONRPCWallet
w = Wallet(JSONRPCWallet(port=28088))
print("Address: " + str(w.address()))
print("Balance: " + str(w.balance()))
addr = w.new_address()
print("New Address: " + str(addr))
amount = 0.5
trx = w.transfer(addr, amount) # TODO: NotEnoughUnlockedMoney: not enough unlocked money
print("Send " + str(amount) + " XMR to " + str(addr) + "\n" + str(trx))
print("Transaction fee: " + str(trx[0].fee) + " and Timestamp: " + str(trx[0].timestamp))
print("Balance: " + str(w.balance()))
acc = w.new_account()
new_addr = acc.new_address()
new_amount = 0.1
new_trx = w.transfer(new_addr, new_amount)
print("Send " + str(new_amount) + " XMR to " + str(new_addr) + "\n" + str(new_trx))
thank you!
I get this error if i try to execute this code:
But
monero-python
is already installed