Launch your Chainlet
Last updated
Last updated
To launch a chainlet, you will need the following:
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:
To launch a chainlet of type sagaevm
, you would execute the following command:
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:
sagacli chainlet launch
enables access to the chainlet launch capability of sagacli
sagaevm
indicates the chainlet type we are launching
1.1
indicates the version of the chainlet type we want to use for the chainlet. Note that there can be multiple versions of a chainlet type, which often happens when the chainlet of a specific type is updated and enhanced, or patched
magicwarriors
this is what we want to call the chainlet i.e. the chainlet's name, it will be part of the new chainlet chain-id and will be used for the RPC endpoints and Explorer URLs of this new chainlet
--dac-enable
this flag enables deployment access control for the chainlet so that multiple users (sagacli
accounts) can be tagged as chainlet admins and/or as accounts that are allowed to deploy smart contracts on the chainlet. No other account will be allowed to deploy smart contracts on this chainlet if this flag is provided!
--maintainer
this 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.
--genesis-account
this is a list of hex addresses along with their respective balances that we want to allocate at chainlet genesis i.e. the chainlet will be launched with these addresses holding the specified balance in tokens.
Example: sagacli chainlet launch <chainlet launch parms> --from mykey2
Launching the chainlet will automatically fund the escrow account from the 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 Access.
IMPORTANT: If you need to launch a chainlet with a different currency aka token denomination, other than the default (tsaga
), 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
IMPORTANT: The above chainlet has been launched by the address associated with the default key (refer to ). 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.