1. Scaffold Chain Source Code
Run the feather dev scaffold command to create a new source code for your chain using a template:
feather dev scaffold \ --id <chain_id> \ --name <chain_name> \ --denom <bond_denom> \ --prefix <address_prefix> \ --repo <github_repo> \ [--template <template>]
| Flag | Description | Example |
|---|---|---|
--id | Chain ID that uniquely identifies your blockchain network | mychain-2phoenix-1 |
--name | A human readable name for your chain | terraosmosis |
--denom | The denom of the coin used for staking/delegations | mydenomuluna |
--prefix | Address prefix of your chain | myprefixterra |
--repo | The GitHub repository where your scaffolded chain must be pushed to before publishing the chain. This will also be used as the go module name. | github.com/User/repo_namehttps://github.com/User/repo |
--template | [Optional] The GitHub repository of the template to clone, with optional suffix of #<branch/tag/commit> | github.com/User/repo_namegithub.com/User/repo#branchgithub.com/User/repo#v1.0.0 |
After running the command, you should see that a new directory was created with the chain's code. Enter the directory containing your chain before moving to the next step:
cd ./<chain_name>