3

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.

degr8sid
  • 91
  • 8

1 Answers1

3

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*/)
Jake Cahill
  • 361
  • 1
  • 4