Create an NFT Collection
Create an NFT Collection with a name, symbol, supply, and basic default royalties.
Overview
There are 3 required fields needed to create an NFT:
symbol
collection_name
supply
In addition, royalties of 5.25% are automatically added, these may be turned off. After all, we don't live in a web2 world anymore. For future secondary sales, you will receive 5% and this tooling treasury will receive 0.25% or 5% of the current royal structure.
These are the optional fields you can use:
allow_custom_fees (to disable royalties)
royalty_account_id (the account that will receive royalties, defaults to the Treasury API account)
royalty_fee (set as 0.05, or 5%, by default)
fallback_fee (default set as 0, for simpler internal transfers)
enable_unsafe_keys (CONSIDERED DANGEROUS: set the admin, freeze, and wipe keys)
POST https://hedera-serverless-consensus.vercel.app/api/nft
Create an NFT collection
Headers
x-api-key*
String
The API_SECRET_KEY from the client's environment variables.
Request Body
symbol*
Symbol of the NFT collection
name*
String
Name of the NFT collection
supply*
Int
Supply of the NFT collection
allow_custom_fees
boolean
default true, enable custom/royalty fees
royalty_account_id
String
Hedera account id to send royalties to
royalty_fee
decimal
Royalty percentage as a decimal for secondary sales
fallback_fee
decimal
HBAR fallback for non-treasury transfers
enable_unsafe_keys
boolean
Considered Dangerous, if true, stops an NFT collection from being immutable
Last updated