Gavin Wood, a senior blockchain developer, can send a chain in 30 minutes. Even Fortech CLI can shorten this time by 50%. Of course, you need a reliable network environment, hehe!
We have installed the Forge CLI, but we have not installed other components of Forge into the computer. Continue to execute these commands to install these components:
The Forge installation process is as follows:
With everything in place, let's go straight to the bullshit: create and start a chain with the Forge CLI!
Execute the following two commands in order:
The whole process is illustrated below:
forge web openNot surprisingly, your local browser will open the block browser of this chain just started. The block browser can see the basic information of the chain and nodes:
- The geographic location of the node is shown in the upper left corner:
- Node name, working status of each core component of the node
- The name of the chain, the symbol of the coin, the total supply, etc.
- The block height of the chain, the number of transactions, the number of accounts, and the number of validator nodes are displayed on the dashboard
- If you refresh this page, you will see that the block height keeps increasing, because even if there is no transaction, forge will still produce empty blocks.
At this point, our single-node chain has been started. How can we confirm that the state of this chain is normal? carried out
forge status You can see what the current chain height is:
If you want to view the configuration of on-chain coins, you can execute
forge status coreFind in the output
token Information, as shown below:
forge chain:create my-forge-chain -d The created chain actually uses the default configuration items. What if you want to customize the configuration?