Token Properties
create a token
Token properties on Hedera define the characteristics, governance, and lifecycle of fungible and non-fungible tokens. These properties are set during token creation and, depending on configuration, can be updated to meet evolving requirements. By specifying token properties, developers gain control over supply, permissions, and other critical aspects of token behavior.
Name
Set the publicly visible name of the token. The token name is specified as a string of UTF-8 characters in Unicode. UTF-8 encoding of this Unicode cannot contain the 0 byte (NUL
). The token name is not unique. Maximum of 100 characters.
Token Type
The type of token to create. Either fungible (FUNGIBLE_COMMON
) or non-fungible(NON_FUNGIBLE_UNIQUE
).
Symbol
The publicly visible token symbol. Set the publicly visible name of the token. The token symbol is specified as a string of UTF-8 characters in Unicode. UTF-8 encoding of this Unicode cannot contain the 0 byte (NUL
). The token symbol is not unique. Maximum of 100 characters.
Decimal
The number of decimal places a token is divisible by. This field can never be changed.
Initial Supply
Specifies the initial supply of fungible tokens to be put in circulation. The initial supply is sent to the Treasury Account. The maximum supply of tokens is 9,223,372,036,854,775,807
(2^63-1
) tokens and is in the lowest denomination possible. For creating an NFT, you must set the initial supply to 0.
Treasury Account
The account which will act as a treasury for the token. This account will receive the specified initial supply and any additional tokens that are minted. If tokens are burned, the supply will decreased from the treasury account.
Fee Schedule Key
Custom Fees
Max Supply
For tokens of type FUNGIBLE_COMMON
- the maximum number of tokens that can be in circulation.
For tokens of type NON_FUNGIBLE_UNIQUE
- the maximum number of NFTs (serial numbers) that can be minted. This field can never be changed.
You must set the token supply type to FINITE if you set this field.
Supply Type
Specifies the token supply type. Defaults to INFINITE.
Freeze Default
The default Freeze status (frozen or unfrozen) of Hedera accounts relative to this token. If true, an account must be unfrozen before it can receive the token.
Expiration Time
The epoch second at which the token should expire; if an auto-renew account and period are specified, this is coerced to the current epoch second plus the autoRenewPeriod. The default expiration time is 7,890,000 seconds (90 days).
Auto Renew Account
An account which will be automatically charged to renew the token's expiration, at autoRenewPeriod interval. This key is required to sign the transaction if present. Currently, rent is not enforced for tokens so auto-renew payments will not be made.
Auto Renew Period
The interval at which the auto-renew account will be charged to extend the token's expiry. The default auto-renew period is 7,890,000 seconds. Currently, rent is not enforced for tokens so auto-renew payments will not be made. NOTE: The minimum period of time is approximately 30 days (2592000 seconds) and the maximum period of time is approximately 92 days (8000001 seconds). Any other value outside of this range will return the following error: AUTORENEW_DURATION_NOT_IN_RANGE.
Memo
A short publicly visible memo about the token.
Metadata
The metadata of the token. The admin key or the metadata key can be used to update this property.
Token Metadata Standard
Metadata enhances the utility and interoperability of tokens by providing additional context about their attributes. Token metadata provides valuable context for a token's characteristics, enhancing its usability, interoperability, and discoverability across different apps. This metadata is particularly important for NFTs (non-fungible tokens) but can also apply to fungible tokens in certain use cases.
Common Metadata Fields
Name: The display name of the asset.
Description: A detailed description of the asset.
Image URL: A link to the asset's image or multimedia file.
Attributes: Key-value pairs describing properties like rarity, edition, or category.
Royalties: Details about royalty fees (e.g., a 5% royalty with a fallback fee).
Metadata Storage and Standards
Metadata is typically attached during the minting process as a base64-encoded JSON payload, allowing seamless integration with wallets, dApps, and marketplaces. Hedera follows established metadata standards to ensure consistency across platforms. HIP-412 defines a structured format for NFT metadata. See the example below.
By adhering to these standards, developers ensure that tokens created on Hedera can be easily indexed, retrieved, and utilized across various dApps and ecosystems.
Additional Resources
Last updated
Was this helpful?