Wethio Network
Here you will learn about the networks on the Wethio ecosystem in detail.
Wethio Mainnet Spec
Following contains the details of the mainnet wethio blockchain
The Specifications
Chain id: 78 HD derivation path: m/44'/77777'/0'/0/ Consensus Mechanism: PoSV Block finality: >75% Consensus nodes: up to 157 (masternodes) Genesis block date: `` Transaction fee: gas price 0.25 Gwei The fee for Smart contract creation: gas price 10000 Gwei, gas limit >= 1000000 The version of Solidity Compiler: < 0.5
Resources
WethioWallet (Wethio Wallet) WethioScan (Block explorer) WethioMaster (Governance dApp)
Wethio Testnet Spec
As the name suggests, a Testnet is for testing new features and to give a demo of upcoming products. The Wethio testnet network has its own specifications that makes it possible to conduct testing processes smoothly.
The Specifications
Chain id: 79 RPC endpoint: https://rpc.testnet.wethio.io HD derivation path: m/44'/77777'/0'/0/ Consensus Mechanism: PoSV Block finality: >75% Consensus nodes: up to 150 (masternodes) Genesis block date: `` Transaction fee: gas price 0.25 Gwei The fee for Smart contract creation: gas price 10000 Gwei, gas limit >= 1000000 The version of Solidity Compiler: < 0.5
Resources
WethioWallet (Wethio Wallet) WethioScan (Block explorer) WethioMaster (Governance dApp) Faucet (To request testnet ZYN)
Zyn Command Line Interface
A list of commands that can ease the developers interaction with Wethio client Zyn
Command: $ zyn [OPTIONS]
--verbosity: log level from 1 to 5.
--datadir: path to your data directory
--keystore: path to your account's keystore
--identity: your full-node's name.
--password: your account's password.
--networkid: our network ID.
--port: your full-node's listening port (default to 30303)
--rpc, --rpccorsdomain, --rpcaddr, --rpcport, --rpcvhosts: your full-node will accept RPC requests at 8545 TCP.
--ws, --wsaddr, --wsport, --wsorigins: your full-node will accept Websocket requests at 8546 TCP.
--mine: [required] your full-node wants to register to be a candidate for masternode selection.
--gasprice: Minimal gas price to accept for mining a transaction.
--targetgaslimit: Target gas limit sets the artificial target gas floor for the blocks to mine (default: 4712388)
--bootnode: bootnode information to help to discover other nodes in the network
--gcmode: blockchain garbage collection mode ("full", "archive")
--store-reward: store reward report
Setting up a Private Network
In this brief tutorial, you will learn how to set up a private Wethio Testnet on a local machine. It intends to familiarize developers with Wethio's source code and initial setup.
Configuring the Wethio Private Testnet Setup
Here are step-by-step instructions for setting up a Wethio private net with three Masternodes.
Use https://golang.org/doc/install as a reference to install Golan and set environment variables
How to set up the Wethio Client Software
Go to cd $GOPATH/src/github.com/ethereum/go-ethereum to download source code and build
How to Setup Chain Fata Folders datadir and Correspond keystore Folders for 3 Masternodes
How to Initialize / Import Accounts For the Masternodes's Keystore
Initialize new accounts- Ignore this step if there are existing accounts and an option to import them
Import accounts
You must repeat this step twice in order to import two more private keys for our three masternodes
How to customize Genesis Block by Using the puppeth Tool
Command puppeth and give answers to questions related to your private chain as follows:
puppeth
Now set a chain name
> local
<
For configuring new genesis, enter 2
For selecting PoSV Consensus, enter 3
Set blocktime (default 2 seconds)
Set each epoch reward
Set addresses for initial masternodes
Set number of blocks of each epoch (default 900). For customizing epoch number,
update the code here common/constants.go:14 EpocBlockRandomize = 900
Set gap (How many blocks before the checkpoint needs to be prepared for a new masternodes < set ?)
suggestedGap = 5
Enter foundation address which you hold private key
Enter accounts through which you control private keys to unlock MultiSig wallet
Enter swap wallet address for fund 55 million ZYN
Export genesis file by selecting 2. Manage existing genesis - Select 2. Export genesis configuration to enter genesis filename
Exit by pressing Control + C
How to Initialize Your Private Chain with Above Genesis Block
How to Setup Bootnode
Initializing the bootnode key
bootnode -genkey bootnode.key
Running bootnode and copying bootnode information
bootnode -nodekey ./bootnode.key
enode://7e59324b1e54f8c282719465eb96786fb3a04a0265deee2cdb0f62e912337ca
6f118d0c91f7ebfae6f5c17825205279249cf7ff65ae54d0a1a8908ef16f80f63@[::]:30301
Operating Masternodes
How to operate Masternode 1
How to operate Masternode 2
How to operate Masternode 3
Explaining Flags
You can check usage of all flags here: zyn --help
Verifying Your Private Chain
Follow the below steps to do so:
First, connect ipc
Then, connect rpc zyn attach http://localhost:1545 eth.getBlock(0) eth.getBlock(1)
How to troubleshoot
Resetting your chain
Note: Use the Gnosis Multisig Wallet: https://github.com/gnosis/MultiSigWallet
Last updated