geth account new
linlin@linlin-i5:/workspace/blockchain/go-ethereum$ geth account new
INFO [07-26|17:54:28.975] Maximum peer count ETH=50 LES=0 total=50
INFO [07-26|17:54:28.975] 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:88888888
Repeat password:88888888
Your new key was generated
Public address of the key: 0x5058Ac86768a876ae976cd8F95C567E57f09F413
Path of the secret key file: /home/linlin/.ethereum/keystore/UTC--2022-07-26T09-54-37.407935969Z--5058ac86768a876ae976cd8f95c567e57f09f413
- 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!
geth account list
INFO [07-27|16:55:20.269] Maximum peer count ETH=50 LES=0 total=50
INFO [07-27|16:55:20.269] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [07-27|16:55:20.270] Set global gas cap cap=50,000,000
Account #0: {5058ac86768a876ae976cd8f95c567e57f09f413} keystore:///home/linlin/.ethereum/keystore/UTC--2022-07-26T09-54-37.407935969Z--5058ac86768a876ae976cd8f95c567e57f09f4