Token Minting APIs
Comprehensive APIs for minting NFT tokens on the Aptos blockchain.
Overview
The Token Minting APIs provide developers with powerful tools to:
- Mint individual NFT tokens
- Batch mint multiple tokens
- Set token metadata and properties
- Manage token royalties and creator information
- Handle token transfers and ownership
Key Features
Individual Token Minting
Create single NFT tokens with custom metadata, properties, and attributes.
Batch Minting
Efficiently mint multiple tokens in a single transaction to save on gas costs.
Metadata Management
- Set comprehensive token metadata
- Upload and manage token images and assets
- Define custom token properties and traits
Royalty Configuration
- Set creator royalties
- Configure revenue sharing
- Manage secondary sale commissions
API Endpoints
Mint Token
POST /v1/tokens/mint
Mint a new NFT token with specified metadata and properties.
Batch Mint
POST /v1/tokens/batch-mint
Mint multiple tokens in a single transaction.
Update Metadata
PUT /v1/tokens/{token_id}/metadata
Update existing token metadata and properties.
Getting Started
- Get API Keys: Obtain your API keys from the API Keys section
- Set Up Collection: Create a collection using the Create Collection Tool
- Mint Tokens: Use the minting APIs to create your NFT tokens
- Manage Assets: Upload and manage your token assets and metadata
Code Examples
Mint Single Token
const response = await fetch('/api/v1/tokens/mint', {
method: 'POST',
headers: {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
collection_id: 'your-collection-id',
name: 'Token Name',
description: 'Token Description',
image: 'https://example.com/image.png',
properties: {
trait1: 'value1',
trait2: 'value2'
}
})
});
Related Documentation
- Create Collection Tool - Create NFT collections
- NFT APIs - General NFT API documentation
- Gas Stations - Manage transaction fees