NFTs API Reference
Overview
The NFTs API allows you to mint NFTs within your collections on the Solana blockchain. For a step-by-step guide on minting NFTs, see our minting guide.
Mint NFT
POST
/api/{network}/collections/{collectionId}/mint
Note: NFTs must be minted on the same network as their parent collection. The {network} parameter must match the collection's network.
Request Body
{
"name": "string", // Required: Name of the NFT
"description": "string", // Optional: Description of the NFT
"image": "string", // Optional: Base64 encoded image or URL
"attributes": [ // Optional: Array of attributes
{
"trait_type": "string",
"value": "string"
}
],
"recipientAddress": "string" // Optional: Recipient wallet address
}
Response
{
"success": true,
"network": "string", // 'mainnet' or 'devnet'
"nft": {
"id": "string",
"name": "string",
"description": "string",
"image": "string",
"metadataUri": "string",
"mintAddress": "string",
"owner": "string",
"collection": {
"id": "string",
"name": "string",
"symbol": "string",
"mintAddress": "string"
},
"attributes": [
{
"trait_type": "string",
"value": "string"
}
]
}
}
Important Notes
- •NFT metadata is immutable once minted
- •Images are automatically optimized and stored on IPFS
- •Rate limits apply: 100 requests per minute per API key