Create collections
Deploy smart contracts and NFT collections
A collection is a container of NFTs, used by applications like marketplaces and wallets to group NFTs together.
Collections can be created directly from the console or via API. Crossmint has a library of pre-audited artifacts (smart contracts and equivalents on non-EVM chains) for any major use case. However, you can also bring your own contract if you already have one.
Crossmint supports non-fungible and semi-fungible tokens (editions), free and paid mints, and builds on open ERC and Metaplex standards.
Creating an NFT collection
The first time you mint an NFT on a specific blockchain, Crossmint will assign it, and any subsequent mints, to a default collection for that chain. You can create additional collections from the console or in a single API call (requires the API key scope collections.create
):
curl --request POST \
--url https://staging.crossmint.com/api/2022-06-09/collections/ \
--header 'content-type: application/json' \
--header 'x-client-secret: <CLIENT_SECRET>' \
--header 'x-project-id: <PROJECT_ID>' \
--data '
{
"chain": "polygon",
"metadata": {
"name": "A new collection",
"imageUrl": "https://www.crossmint.com/assets/crossmint/logo.png",
"description": "A new collection with its own dedicated smart contract"
}
}
'
Note
The collection details you provide will be displayed to your customers on marketplaces and other interfaces.
For more information, check the API reference for creating collections of NFTs. and semi-fungible tokens.
Check the status of your collection
It takes a few seconds (up to a minute, depending on the blockchain and how congested it is) to deploy a collection.
You can use the following API to check collection status API to check what the status of a collection is. For example:
curl --request GET \
--url https://staging.crossmint.com/api/2022-06-09/collections/default-solana \
--header 'x-client-secret: <CLIENT_SECRET>' \
--header 'x-project-id: <PROJECT_ID>'
Check the API reference for details on the API request and response.
List all collections under your project
curl --request GET \
--url https://staging.crossmint.com/api/2022-06-09/collections/ \
--header 'x-client-secret: <CLIENT_SECRET>' \
--header 'x-project-id: <PROJECT_ID>'
Check the API reference for details on the API request and response.
Updated 21 days ago