This is an example of how to issue a new asset in Stellar Network, just follow the instructions below:
At this point, the project is incomplete, and is intended for you to try to complete the functions folder to get the asset issuance work. Go to functions folder, then complete each of the js files there. After that, you can continue with instructions
- Copy .env.example into a .env
- Go to Stellar Laboratory and create 2 accounts, copy their public and secret keys to .env for Issuer and Distributor
- Fund those accounts using Stellar Friendbot
At this point, you can run npm start
to interact with the CLI prepared for this example.
To show how it works, run the scripts in the following order:
- Trust issuer (Distributor)
- Generate tokens (Issuer)
- Limit supply (Issuer)
- Publish ICO OFfer (Distributor)