Mint and Buy NFTs with Smart Wallets
Integrate Crossmint’s wallets with minting and buying NFTs in your app
Crossmint’s Smart Wallets can be the backbone of a user’s account in your app. You can use them along with other Crossmint and partner APIs to execute critical functions. This page will highlight common use cases, including:
- Minting and editing dynamic NFTs
- Buying an NFT with a Credit Card
- Interacting with a whitelabel NFT marketplace in your app
All of these will require creating a smart wallet first. Haven’t created one yet? Learn how to create one here.
Minting dynamic NFTs
Leveraging Crossmint’s minting tools, you can gas-lessly deploy a contract, and mint NFTs from it to a Crossmint Smart Wallet
Server-side API scopes required: nfts.create
Client-side API scopes required: wallets.create
The only specific requirement when minting to Crossmint’s smart wallet is that you must pass the wallet address that you created for the user as the recipient wallet.
curl --request POST \
--url https://staging.crossmint.com/api/2022-06-09/collections/{collectionId}/nfts \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"recipient": "<chain>:<address>", // You must pass the created wallet address for the recipient
"metadata": {
//truncated for brevity
}
}'
Using your own contract? You can still mint against your smart contract gas-lessly by using the sendTransaction function.