CATs
In this lesson, we talk about Chia Asset Tokens, and how they can be used.
Learning objectives
- Issuance: Understand the basic types of issuance rules.
Content
Script
Expand for the full script
0:00
A Chia Asset Token, or CAT, is a type of fungible token that can be minted from XCH. These tokens can take many different forms from a separate form of currency, to representing a collection of identical assets.
0:20 A CAT can have different properties, determined by it's TAIL, or Token Asset Issuance Limiter. This TAIL determines how the CAT is issued, how it can be subsequently spent, and whether it can be melted back into XCH.
0:40 A CAT wraps an inner puzzle that controls ownership of the coin. This is typically the standard transaction puzzle to facilitate sending the CATs to a Chia wallet. For the TAIL, there are 2 standard puzzles, Single-Issuance, and Multi-Issuance. The Single-Issuance TAIL is more restrictive and is designed to make sure the supply is maintained.
1:00 With this TAIL, only the CATs minted at creation are valid, and they cannot be melted back into XCH. The Multi-Issuance TAIL allows more identical CATs to be issued in the future, as long as the original issuance key is used. This is useful if the total number of tokens needed is unknown.
1:20 While these are the standard puzzles, a TAIL can be customized to allow any desired behavior.
Common gotchas
- Fungibility: CATs are fungible, meaning they can be exchanged for each other at will. There are no editions, lot numbers, or anything else that would differentiate two CATs from the same issuance.
- Melting: Melting a CAT (if allowed by the TAIL) converts the underlying value of the CAT back to XCH which can then be used for other coins. A CAT can only ever be melted into the same amount of XCH used to create the CAT.
Knowledge check
True or False; A CAT is a special type of NFT.
Answer (expand when ready to see the answer)
False. A CAT is fungible, whereas an NFT is non-fungible and represents a unique item.
What are the standard types of TAILs?
Answer (expand when ready to see the answer)
Single-Issuance and Multi-Issuance.
Additional resources
Links
- More about primitives: guides for each primitive, and how to use them.
- In depth CAT overview: describing the CAT standard, and how to issue them.
- Chialisp detailed documentation: detailed information on all aspects of chialisp.
- Support in discord: for further support join our discord server and ask in the #chialisp or #support channels.