![]() Stellar requires accounts to explicitly opt-in to holding an asset by creating a trustline, and in this step the distribution account submits a change_trust operation to do just that. Create a trustline from the distribution account to the issuing account Since the network minimum balance and transaction fees are low, it doesn’t require much to get started. If you do, you may not have enough XLM to do what you need to do. Rule of thumb for production: don’t skirt too close to the minimum network balance. If you’re not sure where to acquire XLM, consult our Lumen Buying Guide. If you’re issuing an asset in production, you will need to use an existing account to send enough live XLM to cover the minimum balance, transaction fees, and, in the case of the distribution account, a trustline. If you’re issuing an asset on the testnet, you can fund your accounts by getting free test XLM from Friendbot. ![]() You can generate a keypair for free, but an account doesn’t exist on the Stellar ledger until it is funded with XLM to cover the minimum balance. Fund the account using a create_account operation In the final step of this process, you’ll create the asset by sending a payment from the issuing account to the distribution account.ġ. The distribution account is the first recipient of the asset. The issuing account is the origin of the asset, and will be forever linked to the asset’s identity. Create the issuing and distribution accounts ![]() You need a funded account to provide the XLM necessary to create the issuing and distribution accounts. ![]() One caveat: if you are creating a token on the public network, there is one additional prerequisite. You can breeze through to get a general understanding, or you can use the Stellar laboratory, which is an interface that allows you to create and submit transactions, to actually follow along and issue a token right here right now. Here, we’ll walk through each step so that the process makes sense. The code to create those operations and submit them as transactions is below. It’s a pretty simple process that requires four operations: one to create an issuing account, one to create a distribution account, one to establish a trustline, and one to make a payment. Instead, assets are created with a payment operation: an issuing account makes a payment using the asset it’s issuing, and that payment actually creates the asset on the network. ![]() There is no dedicated operation to create an asset on Stellar. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |