Get started

Get started building with XMTP


XMTP (Extensible Message Transport Protocol) is the largest and most secure decentralized messaging network. XMTP is open and permissionless, empowering any developer to build end-to-end encrypted 1:1, group, and agent messaging experiences, and more.


🛠️ Phase 0: Explore XMTP developer tools


💬 Phase I: Build core messaging

  1. Create an XMTP client. Be sure to set the appVersion client option.

  2. Create a group chat or direct message (DM) conversation.

    With XMTP, "conversation" refers to both group chat and DM conversations.

  3. Send messages in a conversation.

  4. Manage group chat permissions and metadata.


📩 Phase II: Manage conversations and messages

  1. List existing conversations from local storage.

  2. Stream new conversations from the network.

  3. Stream new messages from the network.

  4. Sync new conversations from the network.


💅🏽 Phase III: Enhance the user experience

  1. Implement user consent, which provides a consent value of either unknown, allowed or denied to each of a user's contacts. You can use these consent values to filter conversations. For example:

    • Conversations with allowed contacts go to a user's main inbox

    • Conversations with unknown contacts go to a possible spam tab

    • Conversations with denied contacts are hidden from view.


🧪 Phase IV: Test and debug

Last updated