Questions tagged [pyota]
For questions about the Python IOTA library pyota.
15 questions
5
votes
1
answer
153
views
Error cannot import name 'Seed' from 'iota'
When trying to import Seed from iota i receive following error:
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "...
4
votes
2
answers
92
views
Fetch Encrypted Data ValueError: Request failed validation
I am trying to fetch bundles from the Tangle based on their tail transaction hashes. I am trying to follow step 7 of the Pyota Tutorial
I successfully encrypted data and included it in a zero-value ...
4
votes
1
answer
133
views
Getting tips transactions hashes
I want to get the current tip transactions;
trying to get the tips addresses using pyota api works fine:
tips = api.get_tips()
addr_tips = tips['hashes']
However trying to find transactions from ...
4
votes
1
answer
123
views
Given a tail transaction hash, can it returns multiple bundles by calling `get_bundles`?
According to pyota library, it states that get_bundles() may return multiple bundles with a specific transaction hash. But even we replay/reattach the bundle, its transactions' hash will change. I ...
4
votes
1
answer
125
views
Decode signature_message_fragment with utf-8
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 7: invalid start byte
from
...
3
votes
1
answer
214
views
Pyota: prepare_transfer
I am trying to construct a simple transaction:
prepare_transfer should get as input transfers: Iterable[ProposedTransaction], and two other optional parameters.
How could one make an Iterable out of ...
3
votes
1
answer
160
views
Problem uploading message to Tangle
I'm working on a project for sending sensor data to the tangle and up to now I've managed to do the following
Collect environment data from a sensor attached to a Raspberry Pi
Send that data via MQTT
...
2
votes
1
answer
84
views
iota-client library (python)
I am working on iota-client library ( downloaded lib from https://pypi.org/project/iota-client/#files) on my ubuntu 20.04 laptop and all go well. However when I try to install the iota-client on ...
2
votes
1
answer
109
views
BadApiResponse: 403 response from node: {'error': 'command [attachToTangle] is protected'}
I have a private tangle with a Hornet Coordinator node. I am trying to make zero-value transactions using Python API but get an error "Command [attachToTangle] is protected.
This the code which I'...
2
votes
1
answer
101
views
BadApiResponse (Wrong MinWeightMagnitude) in Hornet via PyOTA
I have create a Private tangle with Hornet, and I setup three peer node for testing.
When I test for sending data with this tutorial, it responses
from iota import Iota, TryteString, Address, Tag, ...
2
votes
1
answer
46
views
Is PyOTA Sandbox up?
As I'm reading on this guide (http://pyota.readthedocs.io/en/latest/getting_started.html#getting-started)
one should be able to connect to the Sandbox network to test an application.But as I try to ...
2
votes
0
answers
52
views
How to get the bundle hash or tail transaction hash by using the prepare_transfer() and send_trytes methods?
I am sending data to my hornet private tangle in Python. I wanted to do separate api calls to prepare the transaction and publish the transaction. So, I used api.prepare_transfer() and api.send_trytes(...
1
vote
1
answer
352
views
How to find all the messages of the TXs of an Address?
I'd like to find every message attached to the transactions of an address
So I have to search transaction by address with find_transactions(), then list all the signature_message_fragment
How can I do ...
1
vote
0
answers
7
views
Understanding Full Nodes and Light Nodes in IOTA DLT + Setting Up a Light Node on Raspberry Pi 4
I'm looking for information about the concepts of full nodes and light nodes in the IOTA Distributed Ledger Technology (DLT). Specifically, I want to know if these concepts exist in IOTA and how I can ...
-1
votes
1
answer
94
views
PyOTA for beginners [closed]
I'm writing a thesis on IOTA and I wanna develop a simple application in Python as a related project
I have a very small amount of time to do it, so if u wanna be so kind to give me some useful links ...