XMTP is a communication protocol for Web3, allowing you to build apps that communicate with
every wallet in the world. In this guide you will learn to programmatically send XMTP messages to users when they sign up using a wallet.
As long as you have completed the serverless webhook guide, you’ll know how to access the email of a user within your serverless function. However in this instance, we need a wallet address.A new user will have a wallet in two instances:
They signup using an EOA
They receive an embedded wallet
You can learn more about the different kinds of signup you can enable in the following section of the docs: https://docs.dynamic.xyz/sign-in-sign-up/overview.
Let’s assume for now that you have both embedded wallets enabled, and EOA signups enabled so that the user object is guaranteed to have a wallet address.When a user signs up, you can access their wallet address through the Verified Credentials array (reference here):