3. Run Localnet
Using Feather CLI, you can easily spin up a localnet in one single command to verify that your chain works. Run the following command in the working directory of the scaffolded chain:
feather dev sandbox serve
Under the hood, this command does the following:
- Build and install the chain binary (skip by running with the
--skip-installflag) - Initialise all genesis accounts and balances as defined in
config/config.json - Initialise a local validator node (keys are added to the
testkeyring backend) - Start the chain using the binary in step 1 (ie.
feather-cored start)
After starting the chain, you can execute transactions as per usual on a different terminal (ie. feather-cored tx bank send ...).
Initialise chain state only​
Alternatively, if you only wish to do steps 1-3 without starting the chain, run the following command instead:
feather dev sandbox init
To verify the initialisation of keys, run the following:
# Command name may differ depending on your chain namefeather-cored keys list --keyring-backend=test