Skip to main content

Tokens

A token represents an asset on the blockchain.

To create tokens, a user sends a transaction to deploy a token smart contract that results in the creation (or not) of a particular quantity of tokens according to the attributes specified in the smart contract code.

Codefi Assets tokens can be fungible, non-fungible, or semi-fungible.

Codefi Assets token types

Fungible tokens

Fungible tokens are mutually interchangeable. There is no value distinction between any two fungible tokens of the same asset.

Examples of fungible assets - that can be represented on the blockchain by fungible tokens - are the US dollar, the cryptocurrency Ether, or air-miles.

Non-fungible tokens

Non-fungible tokens are non-interchangeable. They represent something unique and scarce.

Multiple unique items of the same asset can be represented by non-fungible tokens such as an art collection, collectibles, in-game assets, or soundtracks.

Semi-fungible tokens

Semi-fungible tokens are a combination of both fungible and non-fungible tokens deployed in a single token smart contract. These tokens enable the creation of more advanced assets.

Semi-fungible tokens may represent company shares with different levels of voting rights, or distinct in-game assets like currencies and loot-boxes.

The Codefi Universal Token library

Codefi Assets provides a library of audited token smart contracts that contain features supporting a vast set of use cases.

Codefi smart contracts have extensions that augment the base feature set of token smart contracts.

See the Codefi Universal Token API for more information.