One of the primary functions of Stellar is the ability to issue assets. It is possible to tokenize any asset, and then trade or transfer it across on the Stellar network. It is easy economically, economically, and for anyone (from banks and money service companies as well as payment processors, local communities, companies and even individuals). You can also tailor the assets to specific usage scenarios with the aid of Stellar’s built-in systems to put them up for sale on Stellar’s Stellar decentralized exchange and make use of market-making bots to gain from Stellar’s global reach, and provide the necessary liquidity. Presently it is the process of tokenizing fiat currencies for enhancing processes like payment across borders is the main application for Stellar.
Anatomy of an Asset
The two main characteristics of each Stellar investment are:
The Asset Code
There are two formats that can be used for asset codes, i.e. the alphanumeric 4-character maximum as well as the alphanumeric 12-character maximum. It’s an identifier code that allows prospective holders of tokens to know the significance of your token.
The Issuer
The assets on stellar are made by a payment operation. The issuer account is the one which makes the payment for the asset that it is issuing. The transaction made by the issuing account generates the asset in the network. The issuing account is the one with the charge of the asset and the control over it.
These traits are used to determine the asset’s location that is listed on Stellar to allow interaction. Sometimes the asset codes are overlapping since more than one company could issue a credit that represents the same asset. Therefore, using the issuer’s code and asset code permits every asset identified as a distinct entity. The credits that are represented by these tokens of excellence can be used to redeem anything outside of the network, for instance, fiat currency, bonds, carbon credits, gold, and so on. If you are able to issue an currency, it must be used with the proper ISO 4217 code and in the event of issuing bonds as well, the stock needs to be used with the correct ISIN number.
Trustlines
Trustlines are account-level entries created by the change_trust function. Every account needs to create trustlines prior to being able to hold assets from another account. It is a way to identify the issuer as well as the asset’s code. The functions of trustlines include:
- Increase the minimal lumen reserve by 1 reserve (currently 0.5XLM) and monitor the balance of the asset.
- Limit the amount of assets that is held in an account.
- Track the liabilities.
Trustlines should have sufficient liquid funds to cover its selling obligations and stay under its limit to meet the buying obligations.
Amount Precision
Asset amounts are encoded in numbers that are signed with 64 bits in the XDR structures. Stellar utilizes this structure to encode transactions. In order to arrive at the native representation in 64-integers the asset quantity unit (as per the eyes of people who use it) is reduced to a ratio of 10 million.
The number values are displayed using int64s. The values of the amount are stored only as signed integers in order to avoid any problems that result due to mixing signed and unsigned integers.
Relevance in Horizon and Stellar Client Libraries
The value encoded in the integer is abstracted in clients-side as well as Horizon libraries like jsstellar-sdk. Certain programming languages, such as JavaScript have issues when trying to maintain the precision of a particular number. Many APIs require to be able to display the amount in unit, i.e., the incremented amount is shown to users. Therefore, we suggest using the “big number” library that can store decimal numbers with arbitrary precision without losing any accuracy.
Lumens (XLM)
The local currency for the Stellar network, Lumens (XLM), is the only asset that doesn’t require an issuer or trustline. The transaction fees are all payable in lumens. Therefore, it is essential that each account maintains an amount of lumens at a minimum. The smallest unit of measurement is “Stroop,” i.e. 10 millionths of one lumen.
Issue an Asset
Instead of executing the procedure of a specific process Assets that are created on Stellar are created using the use of a payment process. The issuing account processes the payment using the asset that it is making and the transaction is an asset that is available on the network. It’s an easy procedure that requires the following four actions:
- Operation to establish an issuing account
- Procedure to establish an account for distribution
- Operation to create a trustline
- Payment operation
Although you aren’t required to transfer assets to a designated distribution account, it’s advised to distribute them to accounts that have the trustline that is required. But, it is important to know that if you wish to establish a token on the public blockchain you will require a fully fundable account in order to create the required XLM to create, issue and dispersing accounts.
Read More : https://www.leewayhertz.com/issue-assets-on-stellar-blockchain/