- QtumX One-Click-Launch-Chain
- Sign up and Sign in
- Build Private Chain
- Seed Node
- Build Consortium Chain
- Online Governance
Download the latest installation package from Github and install it to any directory.
- Run qtumd or qtum-qt to start the main chain of Qtum.
- Open the Help - Debug window - Console of QT wallet or execute the RPC command by qtum-cli.
- Execute the getnewaddress command, generate a new address as an account and record it.
- Execute the dumpprivkey command, get the private key of the new address, and record it.
- Open the QtumX[home page] (https://qtumx.net/), click LOGIN to enter the login page.
- Execute the signmessage command, use the generated address to sign the message in the login page, and fill in the login page with the result of signature.
- Click LOGIN to complete the login.
In order to make it easier to understand, we will first introduce how to build own private chain.
Click LAUNCH A NEW CHAIN，enter the page of release new chain.After filling in all the information of the new chain,click SUBMIT to release the new chain.The meaning of each field is as follows.
- Chain id:the name of the chain,only support lowercase letters and numbers,unique.Such as mychain123.
- Token name:the name of the token,only support capital letters and numbers,unique.Such as BTC、QTX.
- Description:the description of the chain,to introduce the chain,also used to generate genesis block.Such as:my first blockchain.
- Message Header:Network head packet,used to distinguish different chains in network transmission.4 byte length,sixteen decimal representation,8 0-9a-f characters,such as:1234fedc.
- Algorithm:Consensus algorithm.Only PoA consensus is supported now,more choices will be provided in the future.Want to know more about PoA,referenceQtumX technical white paper.
- Miner list:the list of PoA miners,one or more address,separated by commas.When we build the first private chain,use the default account.
- Block interval、Timeout:See the technical white paper, you can use the default value directly.
- Default port:The default port address.
- Dns seed、Ip seed:The default connection seed node in the network when new node join.Because it is a private chain,left empty here.
- Init Reward:Initial rewards for each block.
- Halving interval:The reward will be half after several blocks.
- Halving times:Times of half.
We create a chain named X（link),start the chain by the following steps.
- Use qtumd -chain=x or After the configuration and restart in qtum-qt as shown in the following figure,start the chain named X.
- Execute getpoaminerlist,see the list of miners.
- Execute importprivkey,import the miner's private key.
- Execute setpoaminer,use miner's account to mine.It needs to run this command to mine after node restarts.
- We can see that the number of block is increasing from the QT purse or execute getblockchaininfo command.
- New chain startup success,try trading or intelligent contracts！
Assuming that we have started the private chain X on the machine A and mine,then we need to start the node on the machine B and access the private chain.
- Execute qtumd -chain=x or do configuration to start node of X in qtum-qt on machine B.
- Execute addnode "ip_A" add,connect the node on machine A.
- After connecting, we can view the node situation through the getpeerinfo command.
- Try to trade with each other between the two nodes.
The new node of the block chain can quickly find the network by connecting the seed node (seed) at the time of startup,save the steps of addnode at the above text.The seed node can be a IP or a domain name,and there are nodes running on the corresponding servers. The following explains the process of configuring the seed node.
- Build a new chain named xx,（Link),fill in own domain name in Dns seed,or fill in server address in Ip seed.If you use the domain name,please parse the domain name to your server.
Dns seed: beta.qtumx.net Ip seed: 126.96.36.199
- Enter server（188.8.131.52）,use ./qtumd -chain=xx to start the node.
email@example.com:./qtumd -chain=xx -daemon
- Configuration is completed,any machine starting the XX chain will connect to the seed node to get data.You can see the nodes on the connection through the getpeerinfo command.
The difference between consortium chain and private chain is that the consortium chain is maintained by many miners.EOS is a typical consortium chain:first we get multiple super nodes through the campaign,then these super nodes are responsible for producing the blocks and get the reward of the blocks.
Build a new consortium chain named qtumx（Link).Compared to private chain,the main change is that the miner list field has 3 miners' addresses, separated by commas.
Miner list QT65fYRCwq5tctNsVNVPNnHkwajArLFjo1,QjoHqQw5DsTniaqefuzbpuBDWW3C3qimy2,QWWdLoiHnFSNCjibCyGwbQjwtSzK5Unef3
Start 3 nodes on the seed server,and open mining by importprivkey and setpoaminer command.We can see that the height of block is increasing and the system is running normally by the getblockchaininfo command.We can see the miner of every block by the getblock command.