๐๏ธ Features
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
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.
๐๏ธ 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.