# Register payment token · Decentralized marketplace with FT4 · Learn Chromia

> Your marketplace needs a payment token for buying and selling cards, so you have to register and mint one.

Source: https://chromia.com/learn/marketplace-course/module-ft4/register-token/

Decentralized marketplace with FT4Lesson 4 of 15

1. [01Decentralized marketplace with FT4](https://chromia.com/learn/marketplace-course/introduction/)
2. [02Set up your project](https://chromia.com/learn/marketplace-course/setup/)

Module 1: Registering accounts and assets

1. [03Overview](https://chromia.com/learn/marketplace-course/module-ft4/)
2. [04Register payment token](https://chromia.com/learn/marketplace-course/module-ft4/register-token/)
3. [05Create user accounts](https://chromia.com/learn/marketplace-course/module-ft4/register-account/)

Module 2: Model NFTs in Rell

1. [06Overview](https://chromia.com/learn/marketplace-course/module-nft/)
2. [07Define the NFT model](https://chromia.com/learn/marketplace-course/module-nft/nft/)
3. [08Mint NFTs](https://chromia.com/learn/marketplace-course/module-nft/mint-nfts/)
4. [09Make card attributes random](https://chromia.com/learn/marketplace-course/module-nft/randomness/)

Module 3: Create the marketplace

1. [10Overview](https://chromia.com/learn/marketplace-course/module-assets/)
2. [11Charge a fee for mystery card purchases](https://chromia.com/learn/marketplace-course/module-assets/buy-mystery-card/)
3. [12Put a card up for sale on the marketplace](https://chromia.com/learn/marketplace-course/module-assets/list-card/)
4. [13Buy a card on the marketplace](https://chromia.com/learn/marketplace-course/module-assets/buy-listed-card/)
5. [14Test our marketplace](https://chromia.com/learn/marketplace-course/module-assets/test-marketplace/)
6. [15Test using Chromia CLI](https://chromia.com/learn/marketplace-course/module-assets/test-cli/)

[Learn](https://chromia.com/learn/)[Decentralized marketplace with FT4](https://chromia.com/learn/marketplace-course/)

04 / 15Module 1: Registering accounts and assetsAdvanced

# Register payment token

Your marketplace needs a payment token for buying and selling cards, so you have to register and mint one.

Start by registering the asset that will serve as the payment token. The FT4 library ships with built-in operations for asset registration, so you can rely on it here.

Create the asset with these parameters:

* Name: **Collector Card**
* Symbol: **CRD**
* Decimals: **6**
* URL to icon: **https://url-to-asset-icon**

The asset must be registered as soon as the blockchain is deployed. To do that, declare an object, which acts as a global singleton in your dapp. Because the object is initialized when the blockchain starts, the registration runs at startup.

src/rell\_marketplace/module.rell

```
module;

import lib.ft4.assets.{ asset, Unsafe };

object dapp_meta {
    asset = Unsafe.register_asset("Collector Card", "CRD", 6, chain_context.blockchain_rid, "https://url-to-asset-icon");
}
```

From anywhere in the dapp, you can now reference the asset through `dapp_meta.asset` when performing transfers.

Written for this site from Chromia’s public course. Code samples are the course’s own.

[← Previous**Module 1: Registering accounts and assets**](https://chromia.com/learn/marketplace-course/module-ft4/)[Next →**Create user accounts**](https://chromia.com/learn/marketplace-course/module-ft4/register-account/)
