QtumX One-Click-Launch-Chain

Download

Download the latest installation package from Github and install it to any directory.

Sign up and Sign in

  1. Run qtumd or qtum-qt to start the main chain of Qtum.
  2. Open the Help - Debug window - Console of QT wallet or execute the RPC command by qtum-cli.
  3. Execute the getnewaddress command, generate a new address as an account and record it.
  4. Execute the dumpprivkey command, get the private key of the new address, and record it.
  5. Open the QtumX[home page] (https://qtumx.net/), click LOGIN to enter the login page.
  6. 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.
  7. Click LOGIN to complete the login. image image

Build Private Chain

In order to make it easier to understand, we will first introduce how to build own private chain.

Generate Configuration

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.

  1. Chain id:the name of the chain,only support lowercase letters and numbers,unique.Such as mychain123.
  2. Token name:the name of the token,only support capital letters and numbers,unique.Such as BTC、QTX.
  3. Description:the description of the chain,to introduce the chain,also used to generate genesis block.Such as:my first blockchain.
  4. 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.
  5. 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.
  6. 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.
  7. Block interval、Timeout:See the technical white paper, you can use the default value directly.
  8. Default port:The default port address.
  9. 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.
  10. Init Reward:Initial rewards for each block.
  11. Halving interval:The reward will be half after several blocks.
  12. Halving times:Times of half.

Start Private Chain

We create a chain named X(link),start the chain by the following steps.

  1. Use qtumd -chain=x or After the configuration and restart in qtum-qt as shown in the following figure,start the chain named X. image
  2. Execute getpoaminerlist,see the list of miners.
  3. Execute importprivkey,import the miner's private key.
  4. Execute setpoaminer,use miner's account to mine.It needs to run this command to mine after node restarts. image
  5. We can see that the number of block is increasing from the QT purse or execute getblockchaininfo command. image
  6. New chain startup success,try trading or intelligent contracts!

Connect Private Chain

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.

  1. Execute qtumd -chain=x or do configuration to start node of X in qtum-qt on machine B.
  2. Execute addnode "ip_A" add,connect the node on machine A.
  3. After connecting, we can view the node situation through the getpeerinfo command.
  4. Try to trade with each other between the two nodes. image

Seed Node

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.

  1. 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:  116.62.70.220
  1. Enter server(116.62.70.220),use ./qtumd -chain=xx to start the node.
    root@116.62.70.220:./qtumd -chain=xx -daemon
    
  2. 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. image

Build Consortium Chain

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.

Configuration

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

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. image

Online Governance

About DGP

Modify Miners List

Modify System Parameters

results matching ""

    No results matching ""