TransWikia.com

Using Public Nodes in IOTA Tangle for testing purpose

Iota Asked on August 21, 2021

I want to send some string data using MAM over IOTA Tangle. Right now, I am using devnet. I want to know how can we test our transactions using public nodes on Mainnet? What is the process for it? I could not seem to find any instructions on how to set up public node to pass transaction using MAM. Any leads would be highly appreciated.

One Answer

You can change the URL in the provider field to a node that's on the Mainnet.

You can use this URL as an example: https://nodes.thetangle.org/

Or, you can run your own node.

Be sure to use a minimum weight magnitude of at least 14 for the Mainnet.

For example, for the code you linked to, you need to use something like the following:

const provider = 'https://nodes.thetangle.org/';
await Mam.attach(message.payload, message.address, 3, 14 /*this is the minimum weight magntiude*/)

Correct answer by Jake Cahill on August 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP