Hot answers tagged

4

Seed was added to the top-level iota package in PyOTA v2.2.0b1. For earlier versions of PyOTA, use from iota.crypto.types import Seed instead.


4

Thanks for including the additional info in your question! I was about to write the answer to update to the newest PyOTA version, but you were faster with your comment. So yes, PyOTA 2.3.0b1 should solve the issue! :)


3

Welcome to the IOTA StackExchange! I'm sorry (and a tad embarrassed 😅) to hear that you encountered an error during the tutorials! Hopefully we can get you back on track quickly! The error message indicates two things: Request failed validation ({'transaction': ['wrong_type']}) PyOTA attempted to craft a request to fetch information about the bundle, ...


3

Tips are transactions, not addresses api.getTips() already returns the tips (= transactions), not addresses. tips['hashes'] are the transaction hashes of the tips. So when you do hashes = api.find_transactions(addresses=addr_tips) You are giving find_transactions() a bunch of transaction hashes as addresses. The node then looks up all those transaction ...


2

prepare_transfer needs an Iterable because IOTA transfers are bundles: A collection of input, output and 0-value transactions. An Iterable of ProposedTransactions is for example a ProposedBundle. Example from iota import Iota, ProposedTransaction, ProposedBundle, Address, Tag, TryteString api = Iota('http://yournode.net:14265',seed = b'SEED9GOES9HERE') ...


2

In the original API Proposal, it mentions that getBundle() may return multiple bundles: If there are multiple bundles (because of a replay for example), it will return multiple bundles. When I implemneted PyOTA, I used the API Proposal to design the interface, and I based the implementation off of the iota.lib.js library. At the time, the JS getBundle() ...


2

Your message is: RB H PC a 9D l 9D l CD o EA BC S II \xfc GH \xdf TC e FD r FA ! 99 99 99 99 ... The two tryte pairs II and GH can't be decoded to UTF-8 characters. >>> s = iota.TryteString(b'RBPC9D9DCDEABCIIGHTCFDFA') >>> s.encode() b'Hallo S\xfc\xdfer!' This happens when you convert ASCII to trytes with the Javascript ...


1

Never used Pandas, you probably have to ask elsewhere to get an answer how to serialize your object There are two methods of generating addresses. There is one way to generate the next free address (which you can attach to the tangle automatically), or you can generate an address by index (which will not attach it automatically). Anyway, as soon as you send ...


1

There's a utility function called find_transaction_objects (that will be added to the main API soon) that may be useful here. It does the same thing as find_transactions, except it then converts the trytes that the IRI sends back into proper iota.transaction.base.Transaction objects. Once you have Transaction objects, you can access each one's ...


1

The Sandbox is indeed down, and as a replacement the PoWbox has recently been launched. While the Sandbox used to be its own IOTA testnet isolated from the normal public testnet, the PoWbox is an addition to the public testnet that can be used to reduce the PoW load for your prototypes you are testing (which are running on the public testnet). So you ...


1

If you want to know IOTA and develop an IOTA application in Python you can surely start with: IOTA Developer Hub PyOTA: The IOTA Python API Library Pyota Docs


Only top voted, non community-wiki answers of a minimum length are eligible