Creating Tokens on XChain

Anyone can create a digital token on Bitcoin, Litecoin, or Dogecoin using XChain. No programming skills required. This guide explains what tokens are, how to configure them, and what choices you make when bringing a new token into existence.


What Is a Token?

A token is a digital asset that you define and control. Think of it like issuing your own currency, loyalty points, membership pass, or digital collectible, except instead of a bank or company managing the records, the blockchain does. Every token balance, every transfer, every rule change is recorded permanently on Bitcoin, Litecoin, or Dogecoin.

Once created, your token can be sent between addresses, traded on the built-in exchange, distributed to thousands of people at once, or used as the basis for a business application. The rules you set at creation determine what anyone (including you) can do with it later.


Choosing a Token Name (Ticker)

Every token has a ticker; a short name that identifies it, similar to a stock symbol. Tickers on XChain can be 1 to 250 characters long. Once the tick-namespace rule (TICK_NAMESPACE_ACTIVATION) is active on your network, a brand-new top-level name must be at least four characters; sub-tokens such as MYTOKEN.X and names that already exist are not affected. The rule is active on regtest and armed on testnet, switching on for each testnet chain at that chain’s own height; it is not active on mainnet yet. The heights are TICK_NAMESPACE_ACTIVATION in protocol constants.

A few things to know when choosing a name:

  • Names are unique per blockchain. If someone already created a token called GOLD on Bitcoin, you cannot create another GOLD on Bitcoin. You could, however, create GOLD on Litecoin, since each chain has its own independent namespace.
  • First come, first served. The first valid creation wins the name. There is no registration process or approval; it is simply a race to be first.
  • Case does not matter for lookups. MYTOKEN, mytoken, and MyToken all refer to the same ticker. The name is stored as you typed it, but searches are case-insensitive.
  • Only certain characters are allowed. A ticker may use letters (a-z, A-Z), digits (0-9), and the punctuation ~ ! @ # $ % ^ & * ( ) _ + - = { } [ ] : < > . ?. Everything else is rejected, so a space, a comma, an apostrophe, a quotation mark, |, ;, /, or \ will fail; MY TOKEN and GOLD,SILVER are not valid names. A period (.) is allowed and is used to create sub-tokens (see below), but it cannot appear at the start or end of a name. A caret (^) is likewise allowed anywhere except as the first character: a leading ^ tells the protocol you mean an existing token by its numeric ticker ID (for example ^1234), so a new name such as ^GOLD is rejected.
  • Some names are reserved. The tickers BTC, LTC, DOGE, and XCHAIN are reserved for the platform itself and cannot be issued by anyone except the platform’s designated accounts. Once TICK_NAMESPACE_ACTIVATION is active, the ticker codes of chains XChain may support later (for example ETH, SOL and AVAX) are reserved the same way, and so is every sub-token beneath them; the full list is RESERVED_FUTURE_ROOTS in the protocol constants. Once LIST_TICK_COIN_ACTIVATION is active, a new name that starts with a chain code (BTC, LTC, DOGE or one of the reserved codes) followed by a colon, such as BTC:FOO, is refused too. See ISSUE for the exact rules.

Sub-Tokens

If you add a parent token name followed by a period and a suffix (for example MYTOKEN.SILVER) you create a sub-token. Sub-tokens are cheaper to create than top-level tokens and are useful for organizing related assets under a common brand.

Think of a parent token like a company, and sub-tokens like individual product lines under that company. The naming connection is enforced by the protocol, not just a convention: MYTOKEN must already exist, and only its current owner can create MYTOKEN.SILVER, so nobody else can register a direct child of a name you hold. The rule applies one level at a time: MYTOKEN.SILVER.COIN is gated on whoever owns MYTOKEN.SILVER, so once you sell a sub-token its new owner controls the names beneath it. Creation is also refused while the parent’s ownership is escrowed in an open ownership offer.

Each sub-token gets its own ownership record once it exists. Selling MYTOKEN does not hand over the sub-tokens already issued under it, and selling MYTOKEN.SILVER does not give the buyer any claim on the parent.

On a network below the independent child-edit gate, editing with the full name MYTOKEN.SILVER also requires owning MYTOKEN, and neither ownership record may be in escrow. Editing through the sub-token’s compact ^id reference checks only the sub-token owner and escrow, even below the gate. At or above the gate, the sub-token owner can edit it in either form without the parent owner. The gate is currently unarmed on mainnet, so the below-gate rules apply there whenever mainnet user actions are admitted. See NFT Standard collections.


Setting Token Properties

When you create a token, you configure a set of properties that define how it behaves. You do not have to set all of them at once; most can be updated later unless you choose to lock them.

Supply

Max Supply is the ceiling on how many tokens can be outstanding at one time. Every mint is checked against the current supply plus the amount being minted, so while supply sits at the ceiling, further minting is refused. Destroying tokens lowers the current supply and frees that much headroom again, so a max supply is not a limit on how much can be issued over a token’s lifetime. Think of it as a tank with a fixed capacity rather than a mine with a finite amount of ore: draining it makes room to refill. To close issuance for good, lock the minting paths (see Locking below) rather than relying on the ceiling alone.

Setting a max supply of zero is the protocol’s “uncapped” sentinel: no ceiling at all, which is appropriate for some use cases (like reward points that grow over time) but not others (like collectibles where scarcity matters). That reading is in force on testnet and regtest today. On mainnet it is not active and has no published activation date; it switches on only once a date appears in Flag-Day Values. Until then, a mainnet token with a max supply of zero refuses every positive mint while its ceiling remains zero, so give it a positive ceiling; you can raise the ceiling later unless you set LOCK_MAX_SUPPLY. See Protocol Activation for how the switch-on works.

Decimals

Decimals control how divisible your token is. A token with 0 decimals can only exist in whole units. A token with 8 decimals can be divided into hundred-millionths, like Bitcoin itself.

If you are creating a loyalty points system where you only want whole points, set decimals to 0. If you are creating a financial instrument that might be fractionally owned, higher decimals give you flexibility.

Description

A short text description of your token. This appears in explorers and wallets. Keep it clear and accurate; it is the first thing people will read when they encounter your token.


Minting Rules

Minting is the act of creating new tokens and adding them to circulation. You set the rules for how minting works at creation time.

  • Mint Supply: How much supply is issued straight to you at the moment you create the token, up to Max Supply. For example, if mint supply is 100, creating the token credits you 100 tokens. This is your own issued supply, not the amount a public mint produces. It is issued once, when the token is created: editing the description, or changing any other setting on its own, mints nothing further. You issue more only by sending a mint-settings edit that fills in Mint Supply again, which credits you that amount a second time, still capped by Max Supply. Set Lock Mint Supply to close that path for good.
  • Max Mint: The largest amount of supply any single mint transaction may create. It caps how much one mint produces, not how many mints can happen; left unset (0) there is no per-transaction cap and Max Supply is the only ceiling.
  • Mint Start Block / Mint Stop Block: You can schedule a minting window. Before the start block, minting is not allowed. After the stop block, minting closes. This is how you run a timed token launch; a window opens, people mint during it, and it closes automatically.
  • Per-Address Limit: You can cap the total amount a single address is allowed to mint, added up across every mint that address makes. This prevents one person from minting everything in a public launch.

If you want to be the only person who can mint (a controlled issuance), you keep the token locked down and mint from your own address. If you want a public fair launch where anyone can mint, you set open minting rules and let the community participate.


Access Control

You can restrict which addresses are allowed to interact with your token. The lists gate both sides of a transfer: an address that fails the check can neither receive the token nor send tokens it already holds.

Allow List: Only addresses on this list can send or receive the token. Everyone else is blocked. This is useful for compliance-restricted assets, private token distributions, or anything where you need to know exactly who holds your token.

Block List: Addresses on this list are barred from sending or receiving the token. Everyone else can transact normally. This is useful for blocking specific bad actors while keeping the token open to the general public.

Because the sending address is checked too, taking a holder off the allow list (or adding them to the block list) freezes the balance they already hold: they keep it, but they cannot move it until the lists change.

Both lists reference named lists you define on-chain using the LIST action. You can update these lists at any time, and there is no lock flag that freezes them: unlike a locked max supply, who may send or receive the token can always be changed later.


Programmable Policy (Controllers)

Allow and block lists answer “who may hold this token.” If your rules need to go further than a list of addresses, you can bind your token to a controller: a contract you deploy on-chain that gets the final say over specific kinds of action.

Before a bound action settles, the network runs the controller’s guard. The guard can let the action through, deny it outright, or, on a sale, attach a split that routes part of the seller’s proceeds to addresses it names. That last one is how enforced royalties, marketplace fees and revenue share are expressed; there is no separate royalty setting.

You choose which kinds of action a controller gates:

  • transfer: sends of the token
  • trade: creating an order, a swap, or a dispenser
  • burn: destroying supply
  • mint: creating new supply
  • stake: staking the token into a contract
  • ownership: handing over the token’s ownership record

There is also all, a catch-all you can bind on its own or underneath the specific classes. Your token runs at most one guard per action: the most specific binding wins, and all is the fallback for any class you have not bound directly. Binding all is therefore a single action that gates everything, which is what makes it a “freeze this token entirely” or “compliance-gate everything” policy.

One thing that surprises people: “one guard per token” is not “one guard per action”. The sender’s and the recipient’s own accounts can each have a controller bound too, and a single SEND runs all of them in turn: your token’s guard, then the sender’s, then the recipient’s. Each one costs gas, so the sender needs enough GAS for every guard the action can invoke, not just for yours.

Four things to know before you bind one:

  • It is opt-in. A token with no binding behaves exactly as it always has, with no added fee and no added overhead.
  • It fails closed. If the guard denies, errors, or runs out of gas, the action does not happen and anything the guard did is rolled back. When one broadcast action runs several guards (a token guard and an account guard, say), work an earlier guard already allowed and committed is undone by a later guard’s denial only from the CONTROLLER_GUARD_LEG_SAVEPOINTS flag day; see Controller-Bound Tokens.
  • The actor pays for it. Whoever broadcasts the action pays the guard’s gas, up to a bounded ceiling.
  • Only you can bind or drop one, and dropping is subject to a cooldown you commit to at bind time: the binding keeps applying until that many blocks have passed.

See Controller-Bound Tokens for the full mechanics.


Building Trust: Locking Parameters

One of the most powerful features in XChain is the ability to lock a parameter permanently. Once locked, that parameter can never be changed. Not by you, not by anyone.

Why would you want to lock your own token? Because it builds trust.

Imagine you are launching a collectible token and you tell buyers “no more than 10,000 will ever be held at once.” That is a promise. If you lock the max supply, the ceiling becomes a verifiable, unbreakable guarantee written into the blockchain itself: nobody, you included, can raise it later. Buyers do not have to trust your word; they can verify the lock themselves. Locking the ceiling does not by itself stop new tokens being minted into headroom that earlier burns opened up, so a promise about the total ever issued needs the mint locks below as well.

Parameters you can lock include:

  • LOCK_MAX_SUPPLY: the MAX_SUPPLY ceiling can never be raised, proving the amount outstanding at any one time cannot be inflated beyond what is set now. For your own MINT_SUPPLY re-issues that holds only at and above the ISSUE_MINT_SUPPLY_CUMULATIVE_CAP flag-day (see Flag-Day Values); below it, only LOCK_MINT_SUPPLY stopped an owner minting past the cap
  • LOCK_MINT: no one can ever run the MINT command against this token again. That closes public minting only; as the issuer you can still create supply with MINT_SUPPLY on a re-issue unless LOCK_MINT_SUPPLY is also set
  • LOCK_MINT_SUPPLY: the token is frozen against you issuing any further supply to yourself via MINT_SUPPLY; public minting is unaffected
  • LOCK_MAX_MINT: the MAX_MINT per-transaction amount cap is frozen permanently and can never be edited again
  • LOCK_DESCRIPTION: proves the token’s description cannot be swapped out
  • LOCK_SLEEP: the token can never be paused by the SLEEP command; useful for tokens that must always be tradeable
  • LOCK_CALLBACK: the CALLBACK command can never be run against this token again. It does not preserve the recall terms for later use; it makes recall impossible. Do not set it if you may ever need to recall, revoke or settle the token
  • LOCK_BRIDGE: the token’s bridge settings can never be changed again, by you or by any later owner: no destination chain can be added to or removed from BRIDGE_CHAINS, and MIN_DEPTH can never be raised or lowered. It is set through the bridge opt-in (ISSUE format 7), not the ordinary lock edit. The opt-in is active on regtest, armed on testnet chain by chain behind TOKEN_BRIDGE_ACTIVATION, and not active on mainnet (see Flag-Day Values)

No single flag forecloses all supply creation. Set LOCK_MINT and LOCK_MINT_SUPPLY together to close both issuance paths, and add LOCK_MAX_SUPPLY if you also want the ceiling itself frozen.

Locking is a one-way door. Think carefully before locking anything. Once it is done, there is no going back. Not even for you.

Two things the lock flags do not cover. The first is a token’s allow and block lists. There is no LOCK_ALLOW_LIST or LOCK_BLOCK_LIST, so the lists a token points at can be changed, and those lists edited, at any time; the rules on who may hold the token can never be made permanent the way a max supply can. The second is a controller binding. There is no LOCK_CONTROLLER, so a binding cannot be frozen either, and one can be added to a token after it has been issued. The drop-cooldown you commit to at bind time is the only friction on changing or removing one. Anyone weighing up a token’s guarantees should read its lists and bindings alongside its locks.


Token Ownership

The address that creates a token owns it. The owner can:

  • Update any unlocked parameters
  • Lock parameters permanently
  • Transfer ownership to a different address

Transferring ownership is done through an update to the token, changing the registered owner.


Fees

Creating a token costs a protocol fee. The fee is priced in XCHAIN, the platform’s gas token, but on every chain you can pay it in that chain’s own coin: bitcoin, litecoin, or dogecoin. The network’s price oracle converts the amount at the moment you act, so you do not have to acquire XCHAIN before you can create a token.

On Litecoin and Dogecoin, paying in the native coin is the only option: an action submitted without a native-coin fee output is rejected. On Bitcoin you may instead have the fee deducted from an XCHAIN balance, if you hold one and prefer that.

Either way you also need a small amount of the underlying coin to cover the ordinary miner transaction fee, exactly as you would for any transaction on that chain. See Gas and Fees for the full schedule.


After Creation

Once your token exists, you can:

  • Mint more supply (subject to the rules you set)
  • Send tokens to other addresses
  • Update any parameters you did not lock
  • List it on the built-in exchange (see the Trading guide)
  • Airdrop it to a list of addresses at once
  • Pay dividends to eligible holders proportionally (see DIVIDEND for who is left out)
  • Sleep it temporarily to pause all trading
  • Callback (recall) tokens from all holders if you configured a callback at creation
  • Opt into the bridge to choose which chains the token may move to as the same asset, and optionally a deeper confirmation depth for each move (not active on mainnet; see Moving a Token to Another Chain)
  • Bind a controller to hand enforcement of transfers, trades, mints, burns, staking, or ownership changes to a contract you deploy, and drop it later subject to the cooldown you set

Your token lives on the blockchain permanently. Even if every XChain node went offline, the token records remain embedded in Bitcoin, Litecoin, or Dogecoin transactions forever.


See also: Trading | Betting | Use Cases | FAQ


Copyright © 2025–2026 Dankest, LLC

Based on XChain Platform by Dankest, LLC – https://dankest.llc

Licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-or-later) with a commercial license available for proprietary use.

You may use, modify, and distribute this material under the terms of the License. See LICENSE and NOTICE for full terms. See the licensing overview.

Edit this page on GitHub ↗