In this demo we will use an Ubuntu Linux distribution.
https://geth.ethereum.org/docs/getting-started/installing-geth#ubuntu-via-ppas
mkdir tuto-1
cd tuto-1
geth --datadir . account new
NFO [05-17|02:49:01.146] Maximum peer count ETH=50 LES=0 total=50
INFO [05-17|02:49:01.147] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
Your new account is locked with a password. Please give a password. Do not forget this password.
Password:
Your new key was generated
Public address of the key: 0x165B3a9dA0C69954f9001aFBa1FF684b9FA8c303
Path of the secret key file: keystore/UTC--2023-05-17T02-55-50.389152536Z--165b3a9da0c69954f9001afba1ff684b9fa8c303
- You can share your public address with anyone. Others need it to interact with you.
- You must NEVER share the secret key with anyone! The key controls access to your funds!
- You must BACKUP your key file! Without the key, it's impossible to access account funds!
- You must REMEMBER your password! Without the password, it's impossible to decrypt the key!
vi pwd.txt
Replace the following attributes
{
"config": {
"chainId": 666999,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"muirGlacierBlock": 0,
"berlinBlock": 0,
"londonBlock": 0,
"arrowGlacierBlock": 0,
"grayGlacierBlock": 0,
"clique": {
"period": 10,
"epoch": 30000
}
},
"difficulty": "1",
"gasLimit": "800000000",
"extradata": "0x00000000000000000000000000000000000000000000000000000000000000007df9a875a174b3bc565e6424a0050ebc1b2d1d820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"alloc": {
"0x165B3a9dA0C69954f9001aFBa1FF684b9FA8c303": { "balance": "500000" }
}
}
geth init --datadir . genesis.json