Nem Python Library Example


#1

I am new to nem and i am searching for a way to include the usage of doing a transaction on the nem blockchain in my python programm.

Unfortunately i cannt find a working python libary to do so. I followed the link to the python library on the nem developer website. I inmportet it and tryed it with the given example (my own wallet data) but it didnt work.

Is there any example for a working python script to post a single sign transaction ?

Thanks


#2

If NEM-py library is too complicated to use. I would say you have to go through the whole code as documentation isn’t straightforward, try this one:


#3

Thank you for this Library.

But i faced a few problems, i tried this with the given examples and my own wallet and key.

I tried to get information about a NEM Account with the given example in the Library (test_account_que.py), but the only result i got:

no Data

And i tried to do a simple transaction, i tried to do a transaction from my NANOWallet without any problems, but it doesnt work in python.

Python Code from Github, broadcast example: Nem-python SENDING

Traceback (most recent call last):
File “Test_Account.py”, line 31, in
tx_hash = nem.transaction_announce(tx_hex, sign_hex)
File “\nem_connect.py”, line 951, in transaction_announce
raise NemConnectError(“failed ‘transaction/announce’ %s” % result_message)
nem_python.nem_connect.NemConnectError: failed ‘transaction/announce’ [‘FAILURE_SIGNATURE_NOT_VERIFIABLE’, ‘FAILURE_SIGNATURE_NOT_VERIFIABLE’, ‘FAILURE_SIGNATURE_NOT_VERIFIABLE’]

Do i have to do any preperation of my system or Library before use ?

Thanks in advance


#4

Sorry for not replying, personally I am using library from NEM’s repo and some code snippets from nembex and I’ve also created some personalized libraries for blockchain analytics, I will look into this library around this weekend and let you know. Ping me on Monday if I’ll forget, please.