With Starport your blockchain can be configured with config.yml
.
A list of user accounts created during genesis of your application.
Key | Required | Type | Description |
---|---|---|---|
name | Y | String | Local name of a key pair |
coins | Y | List of Strings | Initial coins with denominations (e.g. "100coin") |
address | N | String | Address of the account in bech32 |
accounts:
- name: alice
coins: ["1000token", "100000000stake"]
- name: bob
coins: ["500token"]
address: cosmos1adn9gxjmrc3hrsdx5zpc9sj2ra7kgqkmphf8yw
Key | Required | Type | Description |
---|---|---|---|
binary | N | String | Name of the node binary that will be built and used by Starport |
build:
binary: "mychaind"
Key | Required | Type | Description |
---|---|---|---|
path | N | String | Path to protocol buffer files (default: "proto" ) |
third_party_paths | N | List of Strings | Path to thid-party protocol buffer files (default: ["third_party/proto", "proto_vendor"] ) |
A faucet service that sends tokens to addresses. Web UI is available by default on http://localhost:4500.
Key | Required | Type | Description |
---|---|---|---|
name | Y | String | Name of a key pair. name must be in accounts |
coins | Y | List of Strings | Coins with denominations sent per request |
coins_max | N | List of Strings | Maximum amount of tokens sent per address |
port | N | Integer | Port number (default: 4500 ) |
faucet:
name: faucet
coins: ["100token", "5foo"]
coins_max: ["2000token", "1000foo"]
port: 4500
A blockchain has to have at least one validator-node. validator
specifies the account that will be used to initialize the validator and parameters of the validator.
Key | Required | Type | Description |
---|---|---|---|
name | Y | String | Name of a key pair. name must be in accounts |
staked | Y | String | Amount of coins to bond. Must be less or equal to the amount of coins account has |
accounts:
- name: alice
coins: ["1000token", "100000000stake"]
validator:
name: user1
staked: "100000000stake"
A blockchain stores data and configuration in a data directory. This property specifies a path to the data directory.
init:
home: "~/.myblockchain"
Overwrites properties in config/config.toml
in the data directory.
Overwrites properties in config/app.toml
in the data directory.
Specifies a keyring backend.
init:
keyring-backend: "os"
Overwrites properties in config.genesis.json
in the data directory.
genesis:
chain-id: "foobar"