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.

  • Hey, are you able to send your MAM transactions to the Devnet at the moment? If so, can you share the code that you're using to connect to the Devnet? – Jake Cahill Apr 9 '20 at 8:51
  • Hey, I have used this code to send MAM transactions to the Devnet – degr8sid Apr 10 '20 at 11:37

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*/)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.