In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to create a new account for geth. I think it is very practical, so I hope you can get something after reading this article. Let's take a look at it with the editor.
Use geth's account command to manage accounts, such as creating new accounts, updating account passwords, querying accounts, etc.:
Geth account [options...] [arguments...] Command-commandlist list shows existing account new creates a new account update modifies account import imports private key to create a new account
You can use-- help to get help for these commands, such as:
~ $geth account list-- helplist [command options] [arguments...] Print a short summary of all accountsOPTIONS:-- datadir "/ home/bas/.ethereum" Data directory for the databases and keystore-- keystore Directory for the keystore (default = inside the datadir)
Create a new account
Use the geth account new command to create a new account:
$geth account newYour new account is locked with a password. Please give a password. Do not forget this password.Passphrase:Repeat Passphrase:Address: {168bc315a2ee09042d83d7c5811b533620531f67} Import private key to create a new account
You can use the geth account import command to create a new account by importing the private key
~ $geth account import-- datadir / someOtherEthDataDir. / key.prvThe new account will be encrypted with a passphrase.Please enter a passphrase now.Passphrase:Repeat Passphrase:Address: {7f444580bfef4b9bc7e14eb7fb2a029336b07c9d} update account password
Use the geth account update command to update the password for the specified account:
~ $geth account update a94f5374fce5edbc8e2a8697c15331677e6ebf0bUnlocking account a94f5374fce5edbc8e2a8697c15331677e6ebf0b | Attempt 1/3Passphrase:0xa94f5374fce5edbc8e2a8697c15331677e6ebf0bAccount 'a94f5374fce5edbc8e2a8697c15331677e6ebf0b' unlocked.Please give a new password. Do not forget this password.Passphrase:Repeat Passphrase:0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b shows existing accounts
Use the geth account list command list to display existing accounts, and optionally, use-- keystore to specify the keystore directory:
~ $geth account list-- keystore/ tmp/mykeystore/Account # 0: {5afdd78bdacb56ab1dad28741ea2a0e47fe41331} keystore:///tmp/mykeystore/UTC--2017-04-28T08-46-27.437847599Z--5afdd78bdacb56ab1dad28741ea2a0e47fe41331Account # 1: {9acb9ff906641a434803efb474c96a837756287f} keystore:///tmp/mykeystore/UTC--2017-04-28T08-46-52.180688336Z--9acb9ff906641a434803efb474c96a837756287f is how to create a new account for geth. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.