Position: Home page » Ethereum » Ethereum geth command

Ethereum geth command

Publish: 2021-04-26 06:12:59
1.

Ethernet mining tutorial

1. Create a new folder on the hard disk, which is better than C: eth. Then all the mining software is stored here

2. Download the following software

1) geth -- select geth win download and unzip

2) ethernet -- download and unzip to the same folder and rename it as "miner"

3) Ethereum wallet -- Download the win Ethereum wallet and unzip it and rename it as "wallet"

install all the software

3 Open the command prompt (click win and R at the same time, or click Start menu and enter CMD). The command prompt is a command line parser that allows you to execute command input software in the operating system

After

, you will have Ethereum wallet. But there is no balance, so next you need to build an ethminer. It's time to minimize your wallet

Mining

2.

How to use the Linux system mining, to use the service of the HA Yu miner, only need two steps, you can mine on the Linux system

  1. open the website, input the mobile phone number, select how many CPUs you want to use for mining, the default is to use 50% of the CPU for mining, click to generate your exclusive command and

    1. in two steps, you can mine on Linux system, the money you dig only needs to go to the website of hayu miner, enter your mobile phone number to withdraw< br />

3. Build / env.sh go run build / ci.go install. / CMD / geth
make: * * [geth] error 1
there is no such directory, or the directory has insufficient permissions
4. 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
5. Generally speaking, undefined index is the exact writing problem in the process of writing. Notice generally prompts for errors that are not directly related to the execution of code, but don't forget that notice sometimes returns some rendant error information
6. 创建一个空白bat文件后,确定你想要连的矿池,然后在下方找到对应矿池的命令行之后,复制粘贴,替换钱包地址即可
bminer -uri ethash://[email protected]:9999
bminer -uri ethash://[email protected]:4444
bminer -uri ethproxy://[email protected]:8008
bminer -uri ethproxy://[email protected]:8008
bminer -uri ethproxy://[email protected]:2020
bminer -uri ethproxy://[email protected]:8008
bminer -uri ethproxy://[email protected]:3333
bminer -uri ethstratum://[email protected]:3072
bminer -uri ethstratum://[email protected]:3344
bminer -uri ethstratum://foo.worker:[email protected]:20535
7. Virtual currency without instrial chain will certainly collapse
8. Ethiopia is located in the northeast of Africa, on the southwest coast of the Red Sea, bordering on Djibouti and Somalia in the East, Sudan in the north and West, and Kenya in the south, covering an area of over 1103600 square kilometers. The coastline of Ethiopia is 1013km long. The territory is mainly mountainous plateau, most of which belong to the Ethiopian plateau. The central and western regions are the main part of the plateau, accounting for 2 / 3 of the whole territory, with an average altitude of 2500-3000m; African roof & quot; It's called "the best of the best"< At the same time, ETH is the country code of the Federal Democratic Republic of Ethiopia in FIFA.
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750