I’m working with the XMTP JS SDK and need to understand how to rotate an inbox ID when approaching or reaching the 256 inbox updates limit.
According to the [documentation on managing inboxes](Manage XMTP inboxes, identities, and installations – Build with XMTP), the docs state:
When you create an inbox ID, a cryptographic nonce is used to create the ID. If an inbox reaches its inbox updates limit, you can increment the nonce to create a new inbox ID associated with the same wallet address.
However, I cannot find the actual implementation details or method calls for performing this rotation in the JS SDK (browser or node).
What I’ve Checked
- The documentation explains the concept and warns about permanent loss of conversation history
- I’ve reviewed the inbox management section but found no code examples for rotation
- The SDK docs show methods for revoking installations and managing identities, but not inbox rotation
What I Need
Could someone provide:
- The specific method/function to call for rotating an inbox ID in the JS SDK?
- Code example showing how to increment the nonce and create the new inbox ID?
- Any best practices or considerations when implementing this functionality?