curl
command that you can use to create an OTP:
verificationUUID
, which will be used in the subsequent step. Replace <email>
with the actual email of the user & the <environment_id>
with your environment id from your Dynamic dashboard.
curl
command you can use to verify the OTP that was sent to a user :
<verificationUUID>
with the UUID from the previous step, and <OTP>
with the OTP sent to the user’s email. You can use the JWT token to manage sessions, authorize the user, and sign in the user.
<your_project_id>
and <your_secret_key>
with your project ID and secret key from your Crossmint dev console, and <email>
with the email of the user for whom you are creating the wallet. This API call will return a publicKey
that represents the user’s new wallet on the Polygon chain (for this example, we support multiple blockchains).
On successful wallet creation, the API response will look something like this:
<id>
in your database liked to this user’s wallet & in the future you can use other APIs from Crossmint to - Edit this NFT, Transfer NFT, sign a transaction from Crossmint’s wallet, create more collections or mint more NFTs …etc.
Displaying contents of a user’s wallet
Reference : https://docs.crossmint.com/reference/fetch-content-from-wallet
Now, you may want to show the user all the NFTs that their wallet holds. To do this, you can use Crossmint’s “fetch wallet contents” API. Here’s how: