For this example, we will deploy the Avalanche L1 and blockchain on Fuji. Run:
avalanche blockchain deploy <blockchainName>
Choose Fuji:
Use the arrow keys to navigate: ↓ ↑ → ←? Choose a network to deploy on: Local Network ▸ Fuji Mainnet
Use the stored key:
Use the arrow keys to navigate: ↓ ↑ → ←? Which key source should be used to pay transaction fees?: ▸ Use stored key Use ledger
Choose <keyName> as the key to use to pay the fees:
Use the arrow keys to navigate: ↓ ↑ → ←? Which stored key should be used to pay transaction fees?: ▸ <keyName>
Use the same key as the control key for the Avalanche L1:
Use the arrow keys to navigate: ↓ ↑ → ←? How would you like to set your control keys?: ▸ Use fee-paying key Use all stored keys Custom list
The successfully creation of our Avalanche L1 and blockchain is confirmed by the following output:
Your Subnet's control keys: [P-fuji1dlwux652lkflgz79g3nsphjzvl6t35xhmunfk1]Your subnet auth keys for chain creation: [P-fuji1dlwux652lkflgz79g3nsphjzvl6t35xhmunfk1]Subnet has been created with ID: RU72cWmBmcXber6ZBPT7R5scFFuVSoFRudcS3vayf3L535ZE3Now creating blockchain...+--------------------+----------------------------------------------------+| DEPLOYMENT RESULTS | |+--------------------+----------------------------------------------------+| Chain Name | blockchainName |+--------------------+----------------------------------------------------+| Subnet ID | RU72cWmBmcXber6ZBPT7R5scFFuVSoFRudcS3vayf3L535ZE3 |+--------------------+----------------------------------------------------+| VM ID | srEXiWaHq58RK6uZMmUNaMF2FzG7vPzREsiXsptAHk9gsZNvN |+--------------------+----------------------------------------------------+| Blockchain ID | 2aDgZRYcSBsNoLCsC8qQH6iw3kUSF5DbRHM4sGEqVKwMSfBDRf |+--------------------+ +| P-Chain TXID | |+--------------------+----------------------------------------------------+
Use the arrow keys to navigate: ↓ ↑ → ←? Which configuration file would you like to provide?: ▸ node-config.json chain.json subnet.json per-node-chain.json
Provide the path to the AvalancheGo config file:
✗ Enter the path to your configuration file: <avagoFlagsPath>
Finally, choose no:
Use the arrow keys to navigate: ↓ ↑ → ←? Would you like to provide the chain.json file as well?: ▸ No YesFile ~/.avalanche-cli/subnets/blockchainName/node-config.json successfully written
Use the arrow keys to navigate: ↓ ↑ → ←? Which configuration file would you like to provide?: node-config.json ▸ chain.json subnet.json per-node-chain.json
Provide the path to the blockchain config file:
✗ Enter the path to your configuration file: ~/morpheusvm_chain.json
Finally choose no:
Use the arrow keys to navigate: ↓ ↑ → ←? Would you like to provide the subnet.json file as well?: ▸ No YesFile ~/.avalanche-cli/subnets/blockchainName/chain.json successfully written
Use the arrow keys to navigate: ↓ ↑ → ←? Which configuration file would you like to provide?: node-config.json chain.json ▸ subnet.json per-node-chain.json
Provide the path to the Avalanche L1 config file:
✗ Enter the path to your configuration file: ~/morpheusvm_subnet.json
Choose no:
Use the arrow keys to navigate: ↓ ↑ → ←? Would you like to provide the chain.json file as well?: ▸ No YesFile ~/.avalanche-cli/subnets/blockchainName/subnet.json successfully written