Launch your Chainlet on Testnet
Prerequisites: Download and install SagaCLI and request tokens.
To launch a chainlet, you will need the following:
To launch a chainlet, you will need the following:
Chainlet type you wish to launch
Chainlet type version you wish to launch
An account in
sagacli
that has funds to cover the chainlet launch and the subsequent billing of the chainlet.
Chainlet Types
Ok, let's take this one step at a time! In order to list the chainlet types and versions that are available to be launched on SAGA Platform, you can use the following command:
This command will have a similar output to this:
Chainlet types are added at the moment by admins, members of the SAGA engineering team. In the near future, this will be done in a decentralized manner via a community governance process
All chainlets launched will require a setup fee and a 30-day upfront deposit of the epoch fee
Please ensure you have sufficient funds available in the launcher's wallet to successfully launch a chainlet
See Chainlet Billing for details
To launch a chainlet of type sagaos
, you would execute the following command:
Which follow:
That was a lot to take in at the same time! Let's break that down and take a look at each parameter provided to the command we executed above. Here is the command again:
To add additional admins to your chainlet, add their addresses using the --maintainers
flag when launching the chainlet.
This flag is a comma separated list of chainlet admins. The address following the maintainer flag is the account that will be added as a chainlet admin, giving this address the ability to deploy smart contracts.
IMPORTANT: The above chainlet has been launched by the address associated with the default key (refer to Configuring a Default Key in sagacli
). If you wish to use a different key to sign the launch chainlet transaction (which will set the address of that key as the chainlet
owner), simply append the --from <keyname>
flag to the sagacli chainlet launch
command.
Example: sagacli chainlet launch <chainlet launch parms> --from mykey2
Chainlet Launch Options
Chainlets can be launched using some powerful tools and options. They are explained in detail in this section.
Note that all flags are passed prefixed with double-dashs e.g. --denom
for passing the denom
flag.
IMPORTANT: These are important parameters that are set ONLY at creation time and can't be changed after the chainlet has been launched and genesis happened.
Example: Launching a Chainlet using the base-gas-fee
flag
base-gas-fee
flagThis is a new feature added to Saga Realms in the Pegasus Phase I release.
As described above, you can launch a new chainlet with a base gas fee flag set.
Using this setting may open up your chainlet to spam attacks, especially if you set it to 0
Below is an example of launching a chainlet using the base-gas-fee
flag.
Which follow:
As can be seen, we are launching a chainlet with 0 base gas fee (which comes with a warning that your chainlet will invite spam attacks). We can see from the image below that this transaction was a 0 fee transaction.
You may also set the Metamask advanced option to set gas to 0.
Otherwise, you will still be paying a small amount of gas fee and not zero.
Example: Launching a Chainlet using the fee-account
flag
fee-account
flagThis is a new feature added to Saga Realms in the Pegasus Phase I release.
Using the fee account flag allows you to specify an account to be used to accumulate all of the returned transaction fees associated with the chainlet.
Below is an example of launching a chainlet using this flag.
Which follow:
This chainlet was launched with the flag --fee-account
0x8D37cb3624e1CB8480DceCC7884330a0449Dd9f0 so all the returned transaction fees associated with this chainlet will accumulate in this account.
As an example, the following transaction caused fees associated with the transaction to be deposited into this fee account.
The red border in the image above shows the transaction fees associated with the above transaction.
The command above queries the balance of the account 0x8D37cb3624e1CB8480DceCC7884330a0449Dd9f0 and displays it in hex format. Comparing this new balance with the balance of this account prior to the above transaction, we come up with same amount displayed with a red border in the image above i.e. 0.000035749098105 ome
For more details about this feature, you can check also:
Funding the Chainlet
Launching the chainlet will automatically fund the escrow account from the launcher's account. Prior to launching, you need to ensure there are enough tokens in your account. If you do not have enough tokens, you may see some error messages when launching your chainlet.
To get more tokens, follow the instructions on Getting Started.
Launching Chainlets with a Different Currency Symbol
IMPORTANT: If you need to launch a chainlet with a different currency aka token denomination, other than the default (upsaga
), simply pass the --denom
flag to set the token denomination for the chainlet.
Example:
For a comprehensive list of options, including how to control naming of the chainlet, control the gas limit on each transaction, set up accounts on the chainlet genesis, please refer to
Last updated