github.com/waltonchain/waltonchain_gwtc_src@v1.1.4-0.20201225072101-8a298c95a819/README.md (about)

     1  ![](images/wtc_logo.jpg)
     2  
     3  # GO WTC
     4  Waltonchain Mainnet User Manual
     5  
     6  
     7  ## Steps
     8  
     9  ### 1. Run docker container
    10  Install latest distribution of [Go](https://golang.org "Go") if you don't have it already.  
    11  `# sudo apt-get install -y build-essential`  
    12  
    13  ### 2. Compile source code
    14  `# cd /usr/local/src`  
    15  `# git clone https://github.com/WaltonChain/WaltonChain_Gwtc_Src.git`  
    16  `# cd WaltonChain_Gwtc_Src`  
    17  `# make gwtc`  
    18  `# ./build/bin/gwtc version`  
    19  
    20  ### 3. Deploy
    21  `# cd /usr/local/src/WaltonChain_Gwtc_Src/gwtc_bin/`  
    22  `# cp ../build/bin/gwtc ./bin/gwtc`  
    23  `# ./backend.sh`
    24  
    25  ### 4. Enter console
    26  `# cd /usr/local/src/WaltonChain_Gwtc_Src/gwtc_bin/`  
    27  `# ./bin/gwtc attach ./data/gwtc.ipc`
    28  
    29  ### 5. View information of the connected node
    30  `# admin.peers`
    31  
    32  ### 6. Create account
    33  `# personal.newAccount()`  
    34  `# ******`  ---- Enter new account password  
    35  `# ******`  ---- Confirm the new account password  
    36  
    37  ### 7. Mine
    38  `# miner.start()`
    39  
    40  ### 8. Query
    41  `# wtc.getBalance(wtc.coinbase)`
    42  
    43  ### 9. Unlock account
    44  `# personal.unlockAccount(wtc.coinbase)`
    45  
    46  ### 10. Transfer
    47  `# wtc.sendTransaction({from: wtc.accounts[0], to: wtc.accounts[1], value: web3.toWei(1)})`
    48  
    49  ### 11. Exit console
    50  `# exit`
    51  
    52  ### 12. View log
    53  `# cd /usr/local/src/WaltonChain_Gwtc_Src/gwtc_bin/`  
    54  `# tail -f gwtc.log`
    55  
    56  ### 13. Stop gwtc
    57  `# cd /usr/local/src/WaltonChain_Gwtc_Src/gwtc_bin/`  
    58  `# ./stop.sh` 
    59  
    60  
    61  ## Acknowledgement
    62  We hereby thank:  
    63  ยท [Ethereum](https://www.ethereum.org/ "Ethereum")
    64  
    65  
    66  
    67