Ethereum Genesis JSON
Publish: 2021-05-19 14:42:36
1. At the top of Ethereum is DAPP. It exchanges with the smart contract layer through Web3. JS. All smart contracts run on EVM (Ethereum virtual machine) and use RPC calls. Below EVM and RPC are the four core contents of Ethereum, including: blockchain, consensus algorithm, mining and network layer. Except DAPP, all other parts are in the Ethereum client. The most popular Ethereum client is geth (go Ethereum)
2. GBK
Ethereum is an open source public blockchain platform with smart contract function, which provides decentralized virtual machine (Ethereum virtual machine) to process point-to-point contract through its special cryptocurrency Ethereum. The concept of Ethereum was first inspired by bitcoin by vitalik buterin, a programmer, between 2013 and 2014, and now it's 2.0. Ethereum 2.0 is also something that the whole coin circle is waiting for. In order to celebrate the birth of the genesis block of eth2.0 on December 1, chinacoin officially supports the exchange of eth2.0 verification nodes at 17:00 Hong Kong time on November 20, 2020. It will invest its own eth in the verification node mining and exchange qeth to obtain liquidity. It will participate in the mining as soon as the exchange is received. Now it will give back to the user's welfare. The top 1000 eth enjoy the over exchange of qeth according to the ratio of 1:1.02. Compared with eth2.0, qeth has too many advantages: liquidity is guaranteed, users do not need to bear the technical cost, the threshold of participation does not need 32 eth, as low as 0.1eth, nodes are maintained by the platform, and the revenue is distributed according to eth2.0< br /> < br /> < br />
Ethereum is an open source public blockchain platform with smart contract function, which provides decentralized virtual machine (Ethereum virtual machine) to process point-to-point contract through its special cryptocurrency Ethereum. The concept of Ethereum was first inspired by bitcoin by vitalik buterin, a programmer, between 2013 and 2014, and now it's 2.0. Ethereum 2.0 is also something that the whole coin circle is waiting for. In order to celebrate the birth of the genesis block of eth2.0 on December 1, chinacoin officially supports the exchange of eth2.0 verification nodes at 17:00 Hong Kong time on November 20, 2020. It will invest its own eth in the verification node mining and exchange qeth to obtain liquidity. It will participate in the mining as soon as the exchange is received. Now it will give back to the user's welfare. The top 1000 eth enjoy the over exchange of qeth according to the ratio of 1:1.02. Compared with eth2.0, qeth has too many advantages: liquidity is guaranteed, users do not need to bear the technical cost, the threshold of participation does not need 32 eth, as low as 0.1eth, nodes are maintained by the platform, and the revenue is distributed according to eth2.0< br /> < br /> < br />
3. Many institutional investors have begun to pay attention to Ethereum. Ethereum also rose and institutional investors have a lot to do with admission. I think Ethereum will go up. The stock exchange proposed to go to Zhongyuan, which is a seven-year-old stock exchange and has never had any security incidents. Trustworthy.
4. 2020 is the first year of proction rection. Everyone turns to BTC, BCH, BSV and other currencies. However, you forget eth. As the king of the public chain, ETH will usher in the big upgrade of 2.0 super version in 2020, switching from the pow mechanism to the POS mechanism. In addition, it will face proction rection in March next year, and its circulation will be reced by 10 times. Its impact is no less than that of bitcoin proction. Since the beginning of the year, the trading volume of eth has grown explosively, and the institutional capital has poured in to preempt the layout. However, the current price of eth is only 260 US dollars. With many super favorable blessings, the market expects eth to usher in a super bull market< In theory, the circulation of next year will be reced by 10 times. In theory, the current price of eth is 260x4 = US $1040 (upgrade + expected price after proction rection)
ring this period, the return comparison between holding spot and ETF fund is as follows:
1. Holding spot makes 4 times of profit
2. Holding Ethereum ETF fund makes 12 times of profit, Up to 30 times (intelligent position adjustment + fund compound interest calculation)
there is no doubt that the Ethereum ETF launched by bitoffer is the best investment choice!
ring this period, the return comparison between holding spot and ETF fund is as follows:
1. Holding spot makes 4 times of profit
2. Holding Ethereum ETF fund makes 12 times of profit, Up to 30 times (intelligent position adjustment + fund compound interest calculation)
there is no doubt that the Ethereum ETF launched by bitoffer is the best investment choice!
5. Through curl to simulate, and then get the data, and use it in JSON format
6. To create a Genesis configuration file:
first, you need to create a "Genesis" JSON configuration file, which describes some parameters of the genesis block. The following is the content of the file:
{
& quot; coinbase": & quot;& quot;,< br />" config": {< br />" homesteadBlock": 5
},
" difficulty": & quot; 0x20000",< br />" extraData": & quot; 0x",< br />" gasLimit": & quot; 0x2FEFD8",< br />" mixhash": & quot;& quot;,< br />" nonce": & quot; 0x0",< br />" parentHash": & quot; 000000000000000000000000",< br />" timestamp": & quot; 0x00",< br />" alloc": {< br />"& quot;:< br />{
" balance":& quot;& quot;
}
}
} 1234567891011213141516171819
the above code into a text file and name it genesis.json
Genesis!:
in order not to conflict with the data of the main chain, it is recommended to establish your own private chain data folder. On my computer, I built an ethdbspace as the Ethereum experimental work area on disk e, and created a privchain folder as the data storage folder of my first private chain
here, in order to facilitate management, I put genesis.json under the ethdbspace folder
open the windows command line
type the following command
geth -- dataDir & quot; E:\ EthDBSpace\ PrivChain" init " E:\ EthDBSpace\ genesis.json" 1
– the dataDir option is used to specify the data directory of our private chain. On my computer, it's E: &; EthDBSpace\ Privchain
init is the genesis command, followed by our Genesis configuration file path
after clicking enter, the execution result is as follows
at this time, genesis is complete
create an account:
in order to do experiments on the private chain, we also need to create our own account on the private chain
windows command line, type
geth -- dataDir & quot; E:\ EthDBSpace\ PrivChain" Console1
we have successfully created the world, so when we enter the client for the second time, we do not need to specify the genesis.json file path again, but directly – dataDir to indicate the private link data path
the console command is used to open the command line of geth
after clicking enter, the client will be initialized for a while. After the command prompt appears, it means that you have entered the geth console
type
personal. Newaccount (& #) in the geth command line; Your Password') 1
the personal.newaccount function is used to create an account, in which the parameter is the account password.
after clicking enter, the account creation address will be listed in green below the command, that is, the public key of the account.
we can check the account balance first, In the geth command line, type:
My = eth. Accounts [0]
eth. Getbalance (my) 12
My = eth. Accounts [0]. The purpose of this sentence is to assign the account address we just created to my variable. This can simplify the subsequent account address input. Among them, eth.accounts records the addresses of all accounts on this machine. Since we created an account for the first time, there is only one account on the computer at present. So here we use eth. Accounts [0] to extract the first account address. The eth.getbalance function is used to obtain the account balance, and the parameters are filled in the account address. The my variable here records the address of the first account
I hope my answer can help you
first, you need to create a "Genesis" JSON configuration file, which describes some parameters of the genesis block. The following is the content of the file:
{
& quot; coinbase": & quot;& quot;,< br />" config": {< br />" homesteadBlock": 5
},
" difficulty": & quot; 0x20000",< br />" extraData": & quot; 0x",< br />" gasLimit": & quot; 0x2FEFD8",< br />" mixhash": & quot;& quot;,< br />" nonce": & quot; 0x0",< br />" parentHash": & quot; 000000000000000000000000",< br />" timestamp": & quot; 0x00",< br />" alloc": {< br />"& quot;:< br />{
" balance":& quot;& quot;
}
}
} 1234567891011213141516171819
the above code into a text file and name it genesis.json
Genesis!:
in order not to conflict with the data of the main chain, it is recommended to establish your own private chain data folder. On my computer, I built an ethdbspace as the Ethereum experimental work area on disk e, and created a privchain folder as the data storage folder of my first private chain
here, in order to facilitate management, I put genesis.json under the ethdbspace folder
open the windows command line
type the following command
geth -- dataDir & quot; E:\ EthDBSpace\ PrivChain" init " E:\ EthDBSpace\ genesis.json" 1
– the dataDir option is used to specify the data directory of our private chain. On my computer, it's E: &; EthDBSpace\ Privchain
init is the genesis command, followed by our Genesis configuration file path
after clicking enter, the execution result is as follows
at this time, genesis is complete
create an account:
in order to do experiments on the private chain, we also need to create our own account on the private chain
windows command line, type
geth -- dataDir & quot; E:\ EthDBSpace\ PrivChain" Console1
we have successfully created the world, so when we enter the client for the second time, we do not need to specify the genesis.json file path again, but directly – dataDir to indicate the private link data path
the console command is used to open the command line of geth
after clicking enter, the client will be initialized for a while. After the command prompt appears, it means that you have entered the geth console
type
personal. Newaccount (& #) in the geth command line; Your Password') 1
the personal.newaccount function is used to create an account, in which the parameter is the account password.
after clicking enter, the account creation address will be listed in green below the command, that is, the public key of the account.
we can check the account balance first, In the geth command line, type:
My = eth. Accounts [0]
eth. Getbalance (my) 12
My = eth. Accounts [0]. The purpose of this sentence is to assign the account address we just created to my variable. This can simplify the subsequent account address input. Among them, eth.accounts records the addresses of all accounts on this machine. Since we created an account for the first time, there is only one account on the computer at present. So here we use eth. Accounts [0] to extract the first account address. The eth.getbalance function is used to obtain the account balance, and the parameters are filled in the account address. The my variable here records the address of the first account
I hope my answer can help you
Hot content