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.
Asked
Active
Viewed 120 times
3
-
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 09 '20 at 08:51
-
Hey, I have used this code to send MAM transactions to the Devnet – degr8sid Apr 10 '20 at 11:37
1 Answers
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