I can create a MAM channel and add message to it in a single script using the doc. But when I want to add more message(in another script) to same channel later, I need to have following details saved from first script
- first root(required to fetch all the messages when needed)
As of my understanding from documentation, I need to save seed and first root to add more message to same channel later. But when I execute the example code, I couldn't find a way to add more messages to same channel using seed and first root.
And I can add more messages to same channel using seed, mamState.channel.next_root and mamState.channel.start.
Should I save seed, mamState.channel.next_root and mamState.channel.start in database to add more messages to same channel later?
Please correct me if my understanding is wrong.