Hot answers tagged

3

I just tested your code and it worked for me. This is an example of the response: NVYRBTEAJAYAJMWIAHRMZNT9PQMIUWFTLQOB9RVAIWDLDOSZHPJCWEGNF9JTZLCTULRFCWFEAFAPUIMFM Published Object {numberofSteps: 14, kilometersWalked: 110, message: "Message from Alice", timestamp: "12/4/2019, 8:28:51 AM"} To do this automatically, you could set up events in the code that ...


3

It's irrelevant, you don't need a seed to publish a MAM message since you don't sign the transaction: Example: https://github.com/iota-community/javascript-iota-workshop/blob/master/code/7.1-mam-public-send.js If your library for some reason requires a seed just make one up, you can just publish to any address without the seed belonging to it. The seed is ...


2

IOTA is what we call 'quantum robust' because of the signature scheme that it uses. You can find detailed information about signatures on our documentation portal.


2

When the tip selection algorithm searches for transactions, it uses a depth parameter. You can find out more about depth here: https://docs.iota.org/docs/getting-started/0.1/transactions/depth


2

Nodes can choose to take a local snapshot at any time, which would delete old transactions from their ledgers. Therefore, to be sure that your zero value transactions are not deleted, you would need to run your own node that does not take local snapshots. See the developer documentation for information on running a node.


1

You can check this link about sending "Hello World" to Tangle: https://docs.iota.org/docs/client-libraries/0.1/how-to-guides/js/send-your-first-bundle


1

Here are some 'workshops' covering several hello world examples, including sending a simple non value transaction: Javascript: https://github.com/iota-community/javascript-iota-workshop Python: https://github.com/iota-community/python-iota-workshop Go: https://github.com/iota-community/go-iota-workshop C: https://github.com/iota-community/c-iota-workshop


1

Yes, you can add new messages to a MAM stream by reloading the “mam state” and then simply publishing again. here is an example using javascript https://github.com/Evanfeenstra/helix/blob/master/mam.js#L181


1

Which operating system did you install it on? Did you configure anything so far? (for example changed any ports or added any neighbors so far?) By the way this reminds me of something similar I have opened an issue a while back https://github.com/iotaledger/iri/issues/1678 Maybe you've added a neighbor with an invalid port? Please check /etc/default/iri ...


1

Each transaction has two fields, trunk transaction hash and branch transaction hash, which refer to 2 other transactions (contain the hash of the entirety of these two transaction). When building transactions, you can set both of them, or you can set one of them (to promote it), or you can set none (both are determined by tip selection). How exactly you set ...


1

Mam.fetch is not an async function, instead use the callback. You can make any “callback style” function into an async function by wrapping the call in a return new Promise((resolve,reject)=> .... Do a bit of research about Promises, this is a very common and useful pattern in Nodejs. But i think your problem is secretKey needs to be converted to trytes


1

You just run Mam.fetch. You need to store the root somewhere, and the sideKey if you are using “restricted” mode.


1

What library do you use? You can check, if the transaction is referenced by a milestone. This is the ultimate confirmation for your transaction. If the milestone directly or indirectly confirms your transaction, the transaction is received by all full-nodes.


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