NFT Management
Mint NFT
Learn how to mint NFTs into collections on Solana
Mint new NFTs into existing collections on Solana. Support both self-minting and minting to specific recipients with custom metadata.
Usage
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
collectionMint | PublicKey | Yes | Collection address to mint into |
metadata.name | string | Yes | Name of the NFT |
metadata.uri | string | Yes | Metadata URI for the NFT |
recipient | PublicKey | No | Recipient address (defaults to minter) |
Example Prompts
Natural Language Prompts
LangChain Tool Prompts
Example Implementation
Metadata Format
Your NFT metadata URI should point to a JSON file with this structure:
Implementation Details
- Verifies collection membership
- Handles metadata on-chain
- Supports custom recipient addresses
- Creates associated token accounts
- Manages NFT minting authority
Error Handling
Best Practices
-
Metadata Management
- Use permanent storage (Arweave)
- Include high-quality images
- Validate metadata format
- Follow collection standards
-
Collection Verification
- Verify collection existence
- Check minting authority
- Validate collection standards
- Monitor supply limits
-
Recipient Management
- Validate recipient addresses
- Create token accounts
- Handle transfer failures
- Confirm receipt
-
Technical Considerations
- Monitor network status
- Handle rate limits
- Implement retries
- Log transactions
Response Format
Related Functions
deployCollection
: Create new collectionstransfer
: Transfer NFTsgetBalance
: Check NFT ownershipfetchMetadata
: Get NFT metadata
Was this page helpful?