xmtp / libxmtp

MIT License
33 stars 13 forks source link

`get_inbox_id_for_address` static method #766

Closed neekolas closed 1 month ago

neekolas commented 1 month ago

tl;dr

When creating a V3 client from a platform SDK, you are going to want to name the database file based on the inbox_id instead of the wallet address. That means you need to know the inbox_id before the client is created.

You can use get_inbox_id_for_address to look up an existing value. If none, you can use generate_inbox_id(address, 0)