Mint an NFT and send it to a web3 wallet or web2 email address
Replace:
<QUICKNODE_URL>
: Set to your own quicknode RPC URL<collectionId>
: The name of the collection you want to mint against. If you haven’t created a collection you can just use default
to mint to the default collection for your project📘
Tip: when delivering NFTs to an email address, recipients should sign in with their email at https://staging.crossmint.com/signin to access their NFTs. Ensure you send them an email with these instructions after minting.
📘 Using pre-published metadata
Instead of the object literal in the example above simply pass the string URL to the metadata you’d like to use.
Index | Name | Type | Description |
---|---|---|---|
0 | collectionId | string | the id or name of the collection; every project has “default-solana” and a “default-polygon” collection. Otherwise, use the createCollection RPC endpoint to create a new collection. |
1 | recipient | string | Where to send the NFT. See how to specify the recipient |
2 | metadata | Object | Standards-compliant metadata. See metadata |
Mint an NFT and send it to a web3 wallet or web2 email address
Replace:
<QUICKNODE_URL>
: Set to your own quicknode RPC URL<collectionId>
: The name of the collection you want to mint against. If you haven’t created a collection you can just use default
to mint to the default collection for your project📘
Tip: when delivering NFTs to an email address, recipients should sign in with their email at https://staging.crossmint.com/signin to access their NFTs. Ensure you send them an email with these instructions after minting.
📘 Using pre-published metadata
Instead of the object literal in the example above simply pass the string URL to the metadata you’d like to use.
Index | Name | Type | Description |
---|---|---|---|
0 | collectionId | string | the id or name of the collection; every project has “default-solana” and a “default-polygon” collection. Otherwise, use the createCollection RPC endpoint to create a new collection. |
1 | recipient | string | Where to send the NFT. See how to specify the recipient |
2 | metadata | Object | Standards-compliant metadata. See metadata |