Track 1 · Foundations2 of 5
Tokens
What a token is on XChain, and the rules you can set when you create one.
A token is a digital record with a name and a supply that lives directly on the blockchain. When you issue one, you decide the rules, and you can make some of them permanent.
Name, supply, and decimals
Every token has a short name called a tick (like GOLD), a maximum supply, and a number of decimal places. Zero decimals makes it indivisible (whole units only); more decimals let it be split into fractions.
Who can create new supply
You can keep minting to yourself, or open a public mint window between two block heights so anyone can mint their own allocation at a fixed amount: a transparent, on-chain way to distribute or crowdfund. You can also cap how much any single address may mint.
Locking the rules
You can permanently lock the maximum supply, the description, and other parameters. Once locked, no one (not even you) can change them, so holders can verify the scarcity themselves instead of trusting a promise.
Allow lists and block lists
Restrict who may hold or receive a token using named lists. This is how you build credentials that can't be resold, or memberships limited to approved addresses.
Changing course later
Mint more (up to the cap), permanently destroy supply to reduce it, or use a recall to reclaim tokens from holders at a set price. Useful for structured instruments or revoking credentials.
NFTs and collections
The token model is fungible at its core, and NFTs build directly on it: a token with a supply of 1 and zero decimals is a verifiable one-of-a-kind, and the NFT Standard turns that into the full pattern. You get editions of N identical prints, collections of distinct items under one parent name (the chain proves every item was added by the collection's owner), and any file (image, video, audio, PDF) attached on-chain and owner-signed. There's no separate token type and no marketplace contract: NFTs sell, vend, airdrop, and trade across chains on the same DEX rails as every other token.