FT4 supports the following features:
📄️ Set up a project
In this section, you set up a project to use FT4.
📄️ Register assets
Asset registration in Postchain can be done in two ways: using the FT4 admin operation or writing a custom operation. This topic provides details on how to register assets using both methods.
📄️ Register accounts
Account registration allows you to create new accounts within the system. There are two methods for registering accounts: using an admin operation or defining a custom operation.
📄️ Auth server
The auth repository contains an application that lets users sign up for Chromia via various methods. As a dapp developer on Chromia, you want to use this to prevent attacks where users flood your dapp with accounts. Currently, the available options are:
📄️ Transfer assets
Before transferring, you need to mint tokens to one of the previously created accounts. Let's use an example where we mint 100 TST tokens to the account with the ID 5E24-EAD2. Since the TST asset has six decimal points, we must pass 100,000,000 to the mint operation.
Authentication in dapps is essential for verifying if a user has permission to perform specific actions. While the process is straightforward with regular Rell applications, it becomes more complex with FT4 due to support for native and EVM signatures and multiple keys for an FT4 account. However, the complexity is abstracted, and authentication can be easily implemented using the authenticate operation.
🗃️ Cross-chain transfers
📄️ Advanced usage
This section contains a series of scripts that show complete usage examples of the client library. It should help new developers better understand the library even though the documentation is currently under construction. The import statements are always removed for brevity: any IDE'll automatically find the right ones.
📄️ Rate limiter
The following arguments are settings for the rate limiter (spam prevention). The client accumulates one "operation point" every ratelimitrecoverytime milliseconds, up to ratelimitmaxpoints.
📄️ Important terms
This section provides high—level explanation of the most used terms in the documentation for the FT4 library.