Chain
Manage chains and configs
Command | Description |
---|---|
Displays current chain config. | |
Creates a copy of a current config. | |
Displays current value for a given key. | |
Lists all the currently saved configs. | |
Creates a new config. | |
Removes a config by name or chain ID. | |
Sets the value for a given config key. | |
Swap to a saved config. |
Displays the config of the chain.
Key | Description |
---|---|
chainName | The name of the chain. |
chainId | The ID of the chain to use |
chainUrl | The URL of the chain to use |
registryAddress | The contract address of the Andromeda Registry |
addressPrefix | The prefix for all addresses on chain |
defualtFee | The default fee amount |
blockExplorerTxPages | URLs to block explorers for the given chain. Must include '${txHash}' |
blockExplorerAddressPages | URLs to block explorers for the given chain. Must include '${txHash}' |
chainType | The type of chain (Testnet or Mainnet). |
iconUrl | The icon for the chain. |
chain config
? $main@elgafar-1> chain config
The above command will generate an output similar to:
Current chain config
Key Value Description
name elgafar1 The name of the chain config used
chainName Stargaze The name of the chain
chainId elgafar-1 The ID of the chain to use
chainUrl https://rpc.elgafar-1.stargaze-apis.com/ The URL of the chain to use
registryAddress stars1n8kh8ev97f5ch2c5qtujlaelz9textg3t2tunu3emuv33d2jx9cs7mv9eq The contract address of the Andromeda Registry
addressPrefix stars The prefix for all addresses on chain
defaultFee 0.025ustars The default fee amount
blockExplorerTxPages https://testnet-explorer.publicawesome.dev/stargaze/tx/${txHash} URLs to block explorers for the given chain. Must include '${txHash}'
blockExplorerAddressPages https://testnet-explorer.publicawesome.dev/stargaze/account/${a… URLs to block explorers for the given chain. Must include '${txHash}'
chainType testnet The chain type
iconUrl [object Object]
Creates a copy of a current config.
chain copy <current config name/chainId> <new config name>
? keplr-g3@galileo-3> chain copy galileo3 test
- Loading config...
Config loaded!
- Connecting client...
? keplr-g3@galileo-3> chain list
Name Chain ID
elgafar1 elgafar-1
pisco1 pisco-1
sei-network atlantic-1
injective injective-888
galileo3 galileo-3
junotestnet uni-6
test galileo-3
? keplr-g3@galileo-3> ()
When you copy a config, the wallets from the copied config are also copied to the new one.
Gets the value for the specified key. The keys are the ones found above when we call chain config (chainId, chainUrl, ect...)
chain get <key>
If the <key> is not specified, then the entire config will be fetched.
//Get the chainName of the chain
? $main@elgafar-1> chain get chainName
Current chain config
Key Value Description
chainName Stargaze The name of the chain
Lists all the saved configs.
chain list
? keplr-g3@galileo-3> chain list
Name Chain ID
elgafar1 elgafar-1
pisco1 pisco-1
sei-network atlantic-1
injective injective-888
galileo3 galileo-3
junotestnet uni-6
The chain currently is use is highlighted in green.
Creates a new config.
chain new <name>
? keplr-g3@galileo-3> chain new tutorial
You will be prompted to enter the required config fields. We can then query the configs:
? keplr-g3@galileo-3> chain list
Name Chain ID
elgafar1 elgafar-1
pisco1 pisco-1
sei-network atlantic-1
injective injective-888
galileo3 galileo-3
junotestnet uni-6
tutorial elgafar-1
Removes a config by name or chain ID.
You can only remove configs that have been added and not default configs.
chain rm <config name>
? keplr-g3@galileo-3> chain rm tutorial
Sets the value for a given config key.
This command is disabled on the default chain configs since they are made to be immutable. Any new chain configs that are created or copied can use the command.
chain set <key> <value>
Change some of the values in the config:
// Set the default fee to 0.05uandr
? user@galileo-3> chain set defaultFee 0.05uandr
Run
chain config
to see the changes in the config. Swaps to one of the saved configs.
chain use <chainId/name>
// Get a list of chains saved. elgafar-1 is currently used.
? guide@elgafar-1> chain list
Name Chain ID
elgafar1 elgafar-1
pisco1 pisco-1
sei-network atlantic-1
injective injective-888
galileo3 galileo-3
junotestnet uni-6
example galileo-3
// Set galileo-3 as the config to use using the ID.
? guide@elgafar-1> chain use galileo-3
⠂ Loading configs...
– Loading config...
Config loaded!
⠂ Connecting client...
? user@galileo-3> ()
//Set elgafar-1 as the config to use using the name.
? user@galileo-3> chain use elgafar1
- Loading configs...
– Loading config...
Config loaded!
- Connecting client...
? guide@elgafar-1> ()
The default configs are saved in our GraphQL server, and can be easily fetched by anyone.
Last modified 7mo ago